Fixed an issue with the file system completers not completing. 6_1_x

Mon, 30 Nov 2015 18:52:18 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 30 Nov 2015 18:52:18 +0100
branch
6_1_x
changeset 4596
28bffa5017f2
parent 4592
263812ee54db
child 4605
25851e211cfa

Fixed an issue with the file system completers not completing.
(grafted from f0e48b3e31d455733f1c055842dcd412d26723ca)

E5Gui/E5Completers.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5Completers.py	Sun Nov 29 17:25:42 2015 +0100
+++ b/E5Gui/E5Completers.py	Mon Nov 30 18:52:18 2015 +0100
@@ -40,6 +40,8 @@
         else:
             self.__model.setFilter(QDir.Filters(
                 QDir.Dirs | QDir.Files | QDir.Drives | QDir.AllDirs))
+        self.__model.directoryLoaded.connect(self.complete)
+        self.__model.setRootPath("")
         self.setModel(self.__model)
         self.setCompletionMode(completionMode)
         if isWindowsPlatform():
@@ -72,6 +74,8 @@
         else:
             self.__model.setFilter(
                 QDir.Filters(QDir.Drives | QDir.AllDirs))
+        self.__model.directoryLoaded.connect(self.complete)
+        self.__model.setRootPath("")
         self.setModel(self.__model)
         self.setCompletionMode(completionMode)
         if isWindowsPlatform():

eric ide

mercurial