A little fix to the editor context menu handling.

Sat, 02 Nov 2013 11:55:46 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 02 Nov 2013 11:55:46 +0100
changeset 3059
16c93928cfc5
parent 3055
455365c399ef
child 3060
5883ce99ee12
child 3062
9de9373da5bb

A little fix to the editor context menu handling.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Tue Oct 29 13:07:41 2013 +0100
+++ b/QScintilla/Editor.py	Sat Nov 02 11:55:46 2013 +0100
@@ -1272,11 +1272,13 @@
         self.lexer_ = None
         self.__lexerReset = True
         self.setLexer()
-        self.setMonospaced(self.useMonospaced)
         if self.completer is not None:
             self.completer.setEnabled(False)
             self.completer = None
+        useMonospaced = self.useMonospaced
         self.__setTextDisplay()
+        self.setMonospaced(useMonospaced)
+        self.menuActs["MonospacedFont"].setChecked(self.useMonospaced)
         
         if not self.inLanguageChanged and propagate:
             self.inLanguageChanged = True
@@ -1295,6 +1297,8 @@
         @keyparam propagate flag indicating to propagate the change (boolean)
         @keyparam pyname name of the pygments lexer to use (string)
         """
+        self.menuActs["MonospacedFont"].setChecked(False)
+        
         self.__lexerReset = False
         self.__bindLexer(filename, pyname=pyname)
         self.__bindCompleter(filename)

eric ide

mercurial