bugfix if we create a new account self.account is not set
This commit is contained in:
parent
48473d8ac6
commit
704bfc3a2a
|
@ -1049,6 +1049,7 @@ class Account_modification_window:
|
|||
priority = self.xml.get_widget('priority_spinbutton').get_value_as_int()
|
||||
new_account_checkbutton = self.xml.get_widget('new_account_checkbutton')
|
||||
name = self.xml.get_widget('name_entry').get_text()
|
||||
if self.plugin.connected.has_key(self.account):
|
||||
if name != self.account and self.plugin.connected[self.account] != 0:
|
||||
Error_dialog(_('You must be offline to change the account\'s name'))
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue