prevent traceback. Fixes #5269
This commit is contained in:
parent
709dba715a
commit
4e4a91dbe1
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue