eric6/QScintilla/MiniEditor.py

changeset 7279
d02fe4c17413
parent 7278
1820a0344b62
child 7360
9190402e4505
--- a/eric6/QScintilla/MiniEditor.py	Sat Sep 28 18:44:48 2019 +0200
+++ b/eric6/QScintilla/MiniEditor.py	Sat Sep 28 19:00:43 2019 +0200
@@ -2638,17 +2638,12 @@
             Preferences.getEditorColour("IndentationGuidesForeground"))
         if Preferences.getEditor("ShowWhitespace"):
             self.__textEdit.setWhitespaceVisibility(QsciScintilla.WsVisible)
-            try:
-                self.__textEdit.setWhitespaceForegroundColor(
-                    Preferences.getEditorColour("WhitespaceForeground"))
-                self.__textEdit.setWhitespaceBackgroundColor(
-                    Preferences.getEditorColour("WhitespaceBackground"))
-                self.__textEdit.setWhitespaceSize(
-                    Preferences.getEditor("WhitespaceSize"))
-            except AttributeError:
-                # TODO: is this still needed?
-                # QScintilla before 2.5 doesn't support this
-                pass
+            self.__textEdit.setWhitespaceForegroundColor(
+                Preferences.getEditorColour("WhitespaceForeground"))
+            self.__textEdit.setWhitespaceBackgroundColor(
+                Preferences.getEditorColour("WhitespaceBackground"))
+            self.__textEdit.setWhitespaceSize(
+                Preferences.getEditor("WhitespaceSize"))
         else:
             self.__textEdit.setWhitespaceVisibility(QsciScintilla.WsInvisible)
         self.__textEdit.setEolVisibility(Preferences.getEditor("ShowEOL"))

eric ide

mercurial