Set transient_for for 'Wrong server' error dialog in join gc

This commit is contained in:
Denis Fomin 2013-10-14 16:11:50 +04:00
parent 8de94af154
commit f3d6495ba1
1 changed files with 2 additions and 1 deletions

View File

@ -2588,8 +2588,9 @@ class JoinGroupchatWindow:
return
self.requested_jid = None
if nbxmpp.NS_MUC not in obj.features:
window = gajim.interface.instances[self.account]['join_gc'].window
ErrorDialog(_('Wrong server'), _('%s is not a groupchat server') % \
obj.jid)
obj.jid, transient_for=window)
return
if obj.jid in gajim.interface.instances[self.account]['disco']:
gajim.interface.instances[self.account]['disco'][obj.jid].window.\