Fixed an issue in the editor, where changed settings weren't recognized. 5_0_x

Mon, 27 Dec 2010 17:22:29 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 27 Dec 2010 17:22:29 +0100
branch
5_0_x
changeset 778
45f531096a3e
parent 774
78581c534c74
child 780
cf74f7cc4975

Fixed an issue in the editor, where changed settings weren't recognized.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Mon Dec 27 15:30:30 2010 +0100
+++ b/QScintilla/Editor.py	Mon Dec 27 17:22:29 2010 +0100
@@ -122,10 +122,6 @@
         self.setAttribute(Qt.WA_KeyCompression)
         self.setUtf8(True)
         
-        self.pyExtensions = dbs.getExtensions('Python')
-        self.py3Extensions = dbs.getExtensions('Python3')
-        self.rbExtensions = dbs.getExtensions('Ruby')
-        
         self.dbs = dbs
         self.taskViewer = tv
         self.fileName = fn
@@ -1548,7 +1544,7 @@
         """
         return self.filetype == "Python" or \
             (self.fileName is not None and \
-             os.path.splitext(self.fileName)[1] in self.pyExtensions)
+             os.path.splitext(self.fileName)[1] in self.dbs.getExtensions('Python'))
 
     def isPy3File(self):
         """
@@ -1558,7 +1554,7 @@
         """
         return self.filetype == "Python3" or \
             (self.fileName is not None and \
-             os.path.splitext(self.fileName)[1] in self.py3Extensions)
+             os.path.splitext(self.fileName)[1] in self.dbs.getExtensions('Python3'))
 
     def isRubyFile(self):
         """
@@ -1568,7 +1564,7 @@
         """
         return self.filetype == "Ruby" or \
             (self.fileName is not None and \
-             os.path.splitext(self.fileName)[1] in self.rbExtensions)
+             os.path.splitext(self.fileName)[1] in self.dbs.getExtensions('Ruby'))
         
     def highlightVisible(self):
         """

eric ide

mercurial