Plugins/PluginTabnanny.py

changeset 3621
15f23ed3f216
parent 3591
2f2a4a76dd22
child 3656
441956d8fce5
--- a/Plugins/PluginTabnanny.py	Fri May 30 13:17:20 2014 +0200
+++ b/Plugins/PluginTabnanny.py	Fri May 30 15:16:40 2014 +0200
@@ -250,7 +250,7 @@
                 ))
                 self.__projectBrowserAct.triggered.connect(
                     self.__projectBrowserTabnanny)
-            if not self.__projectBrowserAct in menu.actions():
+            if self.__projectBrowserAct not in menu.actions():
                 menu.addAction(self.__projectBrowserAct)
     
     def __projectTabnanny(self):
@@ -327,7 +327,7 @@
         @param editor reference to the editor
         """
         if menuName == "Checks":
-            if not self.__editorAct in menu.actions():
+            if self.__editorAct not in menu.actions():
                 menu.addAction(self.__editorAct)
             self.__editorAct.setEnabled(editor.isPyFile())
     

eric ide

mercurial