Set transient_for for 'Wrong server' error dialog in join gc
This commit is contained in:
parent
8de94af154
commit
f3d6495ba1
|
@ -2588,8 +2588,9 @@ class JoinGroupchatWindow:
|
||||||
return
|
return
|
||||||
self.requested_jid = None
|
self.requested_jid = None
|
||||||
if nbxmpp.NS_MUC not in obj.features:
|
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') % \
|
ErrorDialog(_('Wrong server'), _('%s is not a groupchat server') % \
|
||||||
obj.jid)
|
obj.jid, transient_for=window)
|
||||||
return
|
return
|
||||||
if obj.jid in gajim.interface.instances[self.account]['disco']:
|
if obj.jid in gajim.interface.instances[self.account]['disco']:
|
||||||
gajim.interface.instances[self.account]['disco'][obj.jid].window.\
|
gajim.interface.instances[self.account]['disco'][obj.jid].window.\
|
||||||
|
|
Loading…
Reference in New Issue