Commit 7be9f6fc authored by Dicson's avatar Dicson

Set parent for server error dialog in disco

parent b3229cb8
......@@ -826,7 +826,8 @@ _('Without a connection, you can not browse available services'))
jid = helpers.parse_jid(jid)
except helpers.InvalidFormat, s:
pritext = _('Invalid Server Name')
dialogs.ErrorDialog(pritext, str(s))
dialogs.ErrorDialog(pritext, str(s),
transient_for=self.window)
return
if jid == self.jid: # jid has not changed
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment