prevent traceback when showing a warning before roster is built
This commit is contained in:
parent
3d6ac046f2
commit
1e76981322
|
@ -1368,7 +1368,8 @@ class WarningDialog(HigDialog):
|
|||
HigDialog.__init__( self, None,
|
||||
gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, pritext, sectext)
|
||||
self.set_modal(False)
|
||||
self.set_transient_for(gajim.interface.roster.window)
|
||||
if hasattr(gajim.interface, 'roster'):
|
||||
self.set_transient_for(gajim.interface.roster.window)
|
||||
self.popup()
|
||||
|
||||
class InformationDialog(HigDialog):
|
||||
|
|
Loading…
Reference in New Issue