Fixed a bug. 5_0_x

Sun, 29 Aug 2010 20:43:02 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 29 Aug 2010 20:43:02 +0200
branch
5_0_x
changeset 522
da309f4795ce
parent 521
29a1a1771e5a
child 528
0a48fc67c451

Fixed a bug.

Tools/TRPreviewer.py file | annotate | diff | comparison | revisions
diff -r 29a1a1771e5a -r da309f4795ce Tools/TRPreviewer.py
--- a/Tools/TRPreviewer.py	Sun Aug 29 20:19:29 2010 +0200
+++ b/Tools/TRPreviewer.py	Sun Aug 29 20:43:02 2010 +0200
@@ -836,7 +836,8 @@
         @param act reference to the action that triggered (QAction)
         """
         idx = act.data()
-        self.__toggleWidget(self.widgets[idx])
+        if idx is not None:
+            self.__toggleWidget(self.widgets[idx])
     
     def __toggleWidget(self, w):
         """

eric ide

mercurial