QScintilla/Editor.py

changeset 989
42b69a254eda
parent 984
f4bddd7cf51e
child 991
5ec5e707dfa5
--- a/QScintilla/Editor.py	Fri Apr 15 19:49:21 2011 +0200
+++ b/QScintilla/Editor.py	Fri Apr 15 19:51:20 2011 +0200
@@ -1353,6 +1353,7 @@
             if ext in [".py", ".pyw"]  and \
                Preferences.getProject("DeterminePyFromProject")and \
                self.project.isOpen() and \
+               self.fileName is not None and \
                self.project.isProjectFile(self.fileName):
                 if self.project.getProjectLanguage() in ["Python", "Python2"]:
                     language = "Python2"

eric ide

mercurial