[pyqgis-console] fix autocompletion in editor after 6e19748

This commit is contained in:
Salvatore Larosa 2013-09-08 23:56:26 +02:00
parent a996365706
commit aebf27eb0e

View File

@ -240,7 +240,8 @@ class Editor(QsciScintilla):
chekBoxAPI = self.settings.value("pythonConsole/preloadAPI", True, type=bool)
chekBoxPreparedAPI = self.settings.value("pythonConsole/usePreparedAPIFile", False, type=bool)
if chekBoxAPI:
self.api.loadPrepared(QgsApplication.pkgDataPath() + "/python/qsci_apis/pyqgis_master.pap")
pap = os.path.join(QgsApplication.pkgDataPath(), "python", "qsci_apis", "pyqgis.pap")
self.api.loadPrepared(pap)
elif chekBoxPreparedAPI:
self.api.loadPrepared(self.settings.value("pythonConsole/preparedAPIFile"))
else: