changeset 4727f3956b46 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=4727f3956b46
description: show only rooms where user can be invited to in invite to submenu. Fixes #7212
diffstat:
src/gui_menu_builder.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 074e7732f8e0 -r 4727f3956b46 src/gui_menu_builder.py
--- a/src/gui_menu_builder.py Mon Aug 27 13:28:47 2012 +0200
+++ b/src/gui_menu_builder.py Mon Aug 27 22:07:29 2012 +0200
@@ -125,6 +125,8 @@
for gc_control in gajim.interface.msg_win_mgr.get_controls(
message_control.TYPE_GC) + minimized_controls:
acct = gc_control.account
+ if acct not in connected_accounts:
+ continue
room_jid = gc_control.room_jid
if room_jid in ignore_rooms:
continue
changeset cbfa665eca8b in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=cbfa665eca8b
description: don't close send single message if there was an error sending the message. Fixes #7187
diffstat:
src/dialogs.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 2d7dbe41958b -r cbfa665eca8b src/dialogs.py
--- a/src/dialogs.py Fri Aug 24 13:33:27 2012 +0200
+++ b/src/dialogs.py Sun Aug 26 22:34:29 2012 +0200
@@ -3078,7 +3078,7 @@
# if offline or connecting
ErrorDialog(_('Connection not available'),
_('Please make sure you are connected with "%s".') % self.account)
- return
+ return True
if isinstance(self.to, list):
sender_list = []
for i in self.to:
@@ -3098,7 +3098,7 @@
ErrorDialog(_('Invalid Jabber ID'),
_('It is not possible to send a message to %s, this JID is not '
'valid.') % to_whom_jid)
- return
+ return True
subject = self.subject_entry.get_text().decode('utf-8')
begin, end = self.message_tv_buffer.get_bounds()
@@ -3142,7 +3142,8 @@
session=self.session)
def on_send_and_close_button_clicked(self, widget):
- self.send_single_message()
+ if self.send_single_message():
+ return
self.save_pos()
self.window.destroy()