prevent traceback

This commit is contained in:
Yann Leboulanger 2010-09-03 08:01:37 +02:00
parent f3771844dc
commit 1857c576d3
1 changed files with 1 additions and 1 deletions

View File

@ -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()