do not ask the offline status message when we quit Gajim if all accounts are already offline

This commit is contained in:
Yann Leboulanger 2005-03-17 18:01:06 +00:00
parent 4f9c61657e
commit 266cff9d3b
1 changed files with 20 additions and 8 deletions

View File

@ -932,6 +932,12 @@ class roster_window:
self.window.hide()
else:
accounts = self.plugin.accounts.keys()
get_msg = False
for acct in accounts:
if self.plugin.connected[acct]:
get_msg = True
break
if get_msg:
message = self.get_status_message('offline')
if message == -1:
message = ''
@ -961,6 +967,12 @@ class roster_window:
def on_quit_menuitem_activate(self, widget):
accounts = self.plugin.accounts.keys()
get_msg = False
for acct in accounts:
if self.plugin.connected[acct]:
get_msg = True
break
if get_msg:
message = self.get_status_message('offline')
if message == -1:
message = ''