git://git.onelab.eu
/
sface.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c381649
)
only call signalAll methods on screens where they exist
author
smbaker
<smbaker@fc8clean.lan>
Thu, 18 Aug 2011 01:43:03 +0000
(18:43 -0700)
committer
smbaker
<smbaker@fc8clean.lan>
Thu, 18 Aug 2011 01:43:03 +0000
(18:43 -0700)
sface/screens/sfascreen.py
patch
|
blob
|
history
diff --git
a/sface/screens/sfascreen.py
b/sface/screens/sfascreen.py
index
c1d8b93
..
1563468
100644
(file)
--- 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