only call signalAll methods on screens where they exist
authorsmbaker <smbaker@fc8clean.lan>
Thu, 18 Aug 2011 01:43:03 +0000 (18:43 -0700)
committersmbaker <smbaker@fc8clean.lan>
Thu, 18 Aug 2011 01:43:03 +0000 (18:43 -0700)
sface/screens/sfascreen.py

index c1d8b93..1563468 100644 (file)
@@ -39,7 +39,9 @@ class SfaScreen(QWidget):
 
     def signalAll(self, action):
         for i in SfaScreen.instances:
 
     def signalAll(self, action):
         for i in SfaScreen.instances:
-            getattr(i, action)()
+            method = getattr(i, action, None)
+            if method:
+                method()
 
     def rspecUpdated(self):
         pass
 
     def rspecUpdated(self):
         pass