From 11d45a5740341696807b71aa839b4d664e7e99e4 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 26 Nov 2005 15:03:03 +0000 Subject: [PATCH] update the value of the status combobox when we go invisible and cancel because of the groupchat warning, or when there is no synced with golbal status account --- src/roster_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 705dd4f89..4fdb119b3 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1585,6 +1585,7 @@ _('If "%s" accepts this request you will know his or her status.') %jid) _('You are participating in one or more group chats'), _('Changing your status to invisible will result in disconnection from those group chats. Are you sure you want to go invisible?')) if dialog.get_response() != gtk.RESPONSE_OK: + self.update_status_combobox() return message = self.get_status_message(status) if message is None: # user pressed Cancel to change status message dialog @@ -1597,6 +1598,7 @@ _('If "%s" accepts this request you will know his or her status.') %jid) # or no account is connected and we want to connect with new show and status if not one_connected or gajim.connections[acct].connected > 1: self.send_status(acct, status, message) + self.update_status_combobox() def update_status_combobox(self): # table to change index in connection.connected to index in combobox