Fixed an issue in the editor binding a lexer to an unsaved file. 5_1_x

Fri, 15 Apr 2011 19:51:35 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 15 Apr 2011 19:51:35 +0200
branch
5_1_x
changeset 987
156472e165f4
parent 986
12880ccc4d15
child 995
cd875a519a3a

Fixed an issue in the editor binding a lexer to an unsaved file.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Fri Apr 15 18:53:59 2011 +0200
+++ b/QScintilla/Editor.py	Fri Apr 15 19:51:35 2011 +0200
@@ -1352,6 +1352,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