prevent traceback when showing a warning before roster is built

This commit is contained in:
Yann Leboulanger 2009-08-28 20:42:48 +02:00
parent 3d6ac046f2
commit 1e76981322
1 changed files with 2 additions and 1 deletions

View File

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