Little enhancement to the eric doc configuration dialog. 6_1_x

Sun, 29 Nov 2015 15:40:19 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 29 Nov 2015 15:40:19 +0100
branch
6_1_x
changeset 4588
bfa7555f7407
parent 4587
223ae735fea9
child 4591
27deaa4e7a77

Little enhancement to the eric doc configuration dialog.

Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py file | annotate | diff | comparison | revisions
diff -r 223ae735fea9 -r bfa7555f7407 Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py
--- a/Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py	Sun Nov 29 13:21:15 2015 +0100
+++ b/Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py	Sun Nov 29 15:40:19 2015 +0100
@@ -516,10 +516,13 @@
         It displays a directory selection dialog to
         select the directory the QtHelp files are written to.
         """
+        startDir = Utilities.fromNativeSeparators(self.qtHelpDirEdit.text())
+        if not startDir:
+            startDir = Utilities.fromNativeSeparators(self.ppath)
         directory = E5FileDialog.getExistingDirectory(
             self,
             self.tr("Select output directory for QtHelp files"),
-            self.qtHelpDirEdit.text(),
+            startDir,
             E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
             
         if directory:

eric ide

mercurial