fix change status via the combobox

This commit is contained in:
Denis Fomin 2013-01-12 15:36:20 +04:00
parent b49d27dfba
commit be6889175d
1 changed files with 2 additions and 4 deletions

View File

@ -3571,8 +3571,7 @@ class RosterWindow:
if keyval == Gdk.KEY_s: # CTRL + s
model = self.status_combobox.get_model()
accounts = list(gajim.connections.keys())
status = model[self.previous_status_combobox_active][2].decode(
'utf-8')
status = model[self.previous_status_combobox_active][2]
def on_response(message, pep_dict):
if message is not None: # None if user pressed Cancel
for account in accounts:
@ -3841,8 +3840,7 @@ class RosterWindow:
not statuses_unified):
# 'Change status message' selected:
# do not change show, just show change status dialog
status = model[self.previous_status_combobox_active][2].decode(
'utf-8')
status = model[self.previous_status_combobox_active][2]
def on_response(message, pep_dict):
if message is not None: # None if user pressed Cancel
for account in accounts: