From 1857c576d3d1dea0f2ad4b5fca72dd1ab612c5dd Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 3 Sep 2010 08:01:37 +0200 Subject: [PATCH] prevent traceback --- src/dialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index 2fff8c743..f08e515f7 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -1471,7 +1471,7 @@ class WarningDialog(HigDialog): HigDialog.__init__( self, None, gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, pritext, sectext) 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.popup()