QScintilla/Editor.py

changeset 542
26a79c19993c
parent 541
00e1a5d060c5
child 546
c3e7bf5648be
--- a/QScintilla/Editor.py	Tue Aug 31 16:38:06 2010 +0200
+++ b/QScintilla/Editor.py	Wed Sep 01 13:30:55 2010 +0200
@@ -5348,7 +5348,10 @@
             self.SCN_CHARADDED.connect(self.__spellCharAdded)
             self.spell.checkDocumentIncrementally()
         else:
-            self.SCN_CHARADDED.disconnect(self.__spellCharAdded)
+            try:
+                self.SCN_CHARADDED.disconnect(self.__spellCharAdded)
+            except TypeError:
+                pass
             self.clearAllIndicators(self.spellingIndicator)
     
     def isSpellCheckRegion(self, pos):

eric ide

mercurial