only call signalAll methods on screens where they exist
[sface.git] / 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:
-            getattr(i, action)()
+            method = getattr(i, action, None)
+            if method:
+                method()
 
     def rspecUpdated(self):
         pass