we need to be offline to change the account's name

This commit is contained in:
Yann Leboulanger 2005-03-28 23:14:03 +00:00
parent 4f62c70a47
commit 6b19bc4c74
1 changed files with 3 additions and 0 deletions

View File

@ -1047,6 +1047,9 @@ 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 name != self.account and self.plugin.connected[self.account] != 0:
Error_dialog(_('You must be offline to change the account\'s name'))
return
jid = self.xml.get_widget('jid_entry').get_text()
autoconnect = 0
if self.xml.get_widget('autoconnect_checkbutton').get_active():