Plugins/PluginTabnanny.py

changeset 954
a096fdc38f71
parent 945
8cd4d08fa9f6
child 1131
7781e396c903
--- a/Plugins/PluginTabnanny.py	Sun Mar 20 18:18:12 2011 +0100
+++ b/Plugins/PluginTabnanny.py	Mon Mar 21 20:03:13 2011 +0100
@@ -248,9 +248,7 @@
         """
         editor = e5App().getObject("ViewManager").activeWindow()
         if editor is not None:
-            if not editor.checkDirty():
-                return
-            
-            self.__editorTabnannyDialog = TabnannyDialog()
-            self.__editorTabnannyDialog.show()
-            self.__editorTabnannyDialog.start(editor.getFileName())
+            if editor.checkDirty() and editor.getFileName() is not None:
+                self.__editorTabnannyDialog = TabnannyDialog()
+                self.__editorTabnannyDialog.show()
+                self.__editorTabnannyDialog.start(editor.getFileName())

eric ide

mercurial