Set parent for server error dialog in disco

This commit is contained in:
Denis Fomin 2014-01-18 11:44:25 +04:00
parent b9ff018a03
commit 9110ad90d5
1 changed files with 2 additions and 1 deletions

View File

@ -832,7 +832,8 @@ _('Without a connection, you can not browse available services'))
jid = helpers.parse_jid(jid)
except helpers.InvalidFormat as 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