ChangeStatusMessageDialog now shows the last_status_message even when we choose "change status message" menuitem

This commit is contained in:
Yann Leboulanger 2005-11-05 17:52:49 +00:00
parent 969bd9fa0d
commit 51d2175b18
2 changed files with 5 additions and 2 deletions

View File

@ -1416,7 +1416,8 @@ _('If "%s" accepts this request you will know his status.') %jid)
one_connected = helpers.one_account_connected()
if active == 7: # We choose change status message (7 is that)
# do not change show, just show change status dialog
dlg = dialogs.ChangeStatusMessageDialog()
status = model[self.previous_status_combobox_active][2].decode('utf-8')
dlg = dialogs.ChangeStatusMessageDialog(status)
message = dlg.run()
if message is not None: # None if user pressed Cancel
for acct in accounts:

View File

@ -350,7 +350,9 @@ class Systray:
gajim.interface.roster.status_combobox.set_active(index)
def on_change_status_message_activate(self, widget):
dlg = dialogs.ChangeStatusMessageDialog()
model = gajim.interface.status_combobox.get_model()
status = model[active][2].decode('utf-8')
dlg = dialogs.ChangeStatusMessageDialog(status)
message = dlg.run()
if message is not None: # None if user press Cancel
accounts = gajim.connections.keys()