From: smbaker Date: Thu, 18 Aug 2011 01:43:03 +0000 (-0700) Subject: only call signalAll methods on screens where they exist X-Git-Tag: sface-0.1-17~12 X-Git-Url: http://git.onelab.eu/?p=sface.git;a=commitdiff_plain;h=24233f9c404fdd3e2d7a0a93886b9d99d6056101 only call signalAll methods on screens where they exist --- diff --git a/sface/screens/sfascreen.py b/sface/screens/sfascreen.py index c1d8b93..1563468 100644 --- a/sface/screens/sfascreen.py +++ b/sface/screens/sfascreen.py @@ -39,7 +39,9 @@ class SfaScreen(QWidget): def signalAll(self, action): for i in SfaScreen.instances: - getattr(i, action)() + method = getattr(i, action, None) + if method: + method() def rspecUpdated(self): pass