Plugins/PluginTabnanny.py

branch
5_1_x
changeset 955
377efd9104a7
parent 805
83ca4d1ff648
child 1510
e75ecf2bd9dd
--- a/Plugins/PluginTabnanny.py	Sat Mar 19 16:08:57 2011 +0100
+++ b/Plugins/PluginTabnanny.py	Mon Mar 21 20:03:40 2011 +0100
@@ -247,9 +247,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