prevent traceback. Fixes #5269

This commit is contained in:
Yann Leboulanger 2009-09-16 16:14:03 +02:00
parent 709dba715a
commit 4e4a91dbe1
1 changed files with 2 additions and 1 deletions

View File

@ -1698,7 +1698,8 @@ class ChangeNickDialog(InputDialogCheck):
if len(self.room_queue) == 0: if len(self.room_queue) == 0:
self.cancel_handler = None self.cancel_handler = None
self.dialog.destroy() self.dialog.destroy()
del gajim.interface.instances['change_nick_dialog'] if 'change_nick_dialog' in gajim.interface.instances:
del gajim.interface.instances['change_nick_dialog']
return return
self.account, self.room_jid, self.prompt = self.room_queue.pop(0) self.account, self.room_jid, self.prompt = self.room_queue.pop(0)
self.setup_dialog() self.setup_dialog()