ChangeStatusMessageDialog now shows the last_status_message even when we choose "change status message" menuitem
This commit is contained in:
parent
969bd9fa0d
commit
51d2175b18
|
@ -1416,7 +1416,8 @@ _('If "%s" accepts this request you will know his status.') %jid)
|
||||||
one_connected = helpers.one_account_connected()
|
one_connected = helpers.one_account_connected()
|
||||||
if active == 7: # We choose change status message (7 is that)
|
if active == 7: # We choose change status message (7 is that)
|
||||||
# do not change show, just show change status dialog
|
# 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()
|
message = dlg.run()
|
||||||
if message is not None: # None if user pressed Cancel
|
if message is not None: # None if user pressed Cancel
|
||||||
for acct in accounts:
|
for acct in accounts:
|
||||||
|
|
|
@ -350,7 +350,9 @@ class Systray:
|
||||||
gajim.interface.roster.status_combobox.set_active(index)
|
gajim.interface.roster.status_combobox.set_active(index)
|
||||||
|
|
||||||
def on_change_status_message_activate(self, widget):
|
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()
|
message = dlg.run()
|
||||||
if message is not None: # None if user press Cancel
|
if message is not None: # None if user press Cancel
|
||||||
accounts = gajim.connections.keys()
|
accounts = gajim.connections.keys()
|
||||||
|
|
Loading…
Reference in New Issue