QScintilla/Editor.py

branch
5_1_x
changeset 972
841220c4dde2
parent 955
377efd9104a7
child 985
749cdce86824
--- a/QScintilla/Editor.py	Tue Apr 05 18:27:45 2011 +0200
+++ b/QScintilla/Editor.py	Sat Apr 09 10:12:46 2011 +0200
@@ -3497,8 +3497,12 @@
             Preferences.getEditor("AutoCompletionCaseSensitivity"))
         self.setAutoCompletionReplaceWord(
             Preferences.getEditor("AutoCompletionReplaceWord"))
-        self.setAutoCompletionShowSingle(
-        Preferences.getEditor("AutoCompletionShowSingle"))
+        try:
+            self.setAutoCompletionUseSingle(
+                Preferences.getEditor("AutoCompletionShowSingle"))
+        except AttributeError:
+            self.setAutoCompletionShowSingle(
+                Preferences.getEditor("AutoCompletionShowSingle"))
         autoCompletionSource = Preferences.getEditor("AutoCompletionSource")
         if autoCompletionSource == QsciScintilla.AcsDocument:
             self.setAutoCompletionSource(QsciScintilla.AcsDocument)

eric ide

mercurial