prevent traceback
This commit is contained in:
parent
f3771844dc
commit
1857c576d3
|
@ -1471,7 +1471,7 @@ class WarningDialog(HigDialog):
|
||||||
HigDialog.__init__( self, None,
|
HigDialog.__init__( self, None,
|
||||||
gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, pritext, sectext)
|
gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, pritext, sectext)
|
||||||
self.set_modal(False)
|
self.set_modal(False)
|
||||||
if hasattr(gajim.interface, 'roster'):
|
if hasattr(gajim.interface, 'roster') and gajim.interface.roster:
|
||||||
self.set_transient_for(gajim.interface.roster.window)
|
self.set_transient_for(gajim.interface.roster.window)
|
||||||
self.popup()
|
self.popup()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue