Skip to content
Snippets Groups Projects
Commit 68d0f517 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

ask our offline status (is configured) when we quit Gajim

parent ec5c1269
No related branches found
No related tags found
No related merge requests found
......@@ -924,6 +924,13 @@ class roster_window:
if self.plugin.systray_visible:
self.window.hide()
else:
accounts = self.plugin.accounts.keys()
message = self.get_status_message('offline')
if message == -1:
message = ''
for acct in accounts:
if self.plugin.connected[acct]:
self.send_status(acct, 'offline', message)
self.quit_gtkgui_plugin()
return 1
......@@ -946,6 +953,13 @@ class roster_window:
gtk.main_quit()
def on_quit_menuitem_activate(self, widget):
accounts = self.plugin.accounts.keys()
message = self.get_status_message('offline')
if message == -1:
message = ''
for acct in accounts:
if self.plugin.connected[acct]:
self.send_status(acct, 'offline', message)
self.quit_gtkgui_plugin()
def on_roster_treeview_row_activated(self, widget, path, col=0):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment