Plugins/ViewManagerPlugins/Tabview/Tabview.py

changeset 8
0ae9bd4d2993
parent 7
c679fb30c8f3
child 12
1d8dd9706f46
diff -r c679fb30c8f3 -r 0ae9bd4d2993 Plugins/ViewManagerPlugins/Tabview/Tabview.py
--- a/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Wed Dec 30 15:40:33 2009 +0000
+++ b/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Wed Dec 30 16:43:09 2009 +0000
@@ -292,8 +292,8 @@
         
         @param act reference to the selected action (QAction)
         """
-        index, ok = act.data()
-        if ok:
+        index = act.data()
+        if index is not None:
             self.setCurrentIndex(index)
         
     def showIndicator(self, on):

eric ide

mercurial