AddProjectDialog: fixed a forgotten call to set the default directory for the project file picker.

Tue, 09 Jul 2019 19:07:03 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 09 Jul 2019 19:07:03 +0200
changeset 7056
516361cdd2d2
parent 7055
d62e7c38ee8e
child 7057
0e8d3b0c4889

AddProjectDialog: fixed a forgotten call to set the default directory for the project file picker.

eric6/MultiProject/AddProjectDialog.py file | annotate | diff | comparison | revisions
--- a/eric6/MultiProject/AddProjectDialog.py	Sun Jul 07 18:50:36 2019 +0200
+++ b/eric6/MultiProject/AddProjectDialog.py	Tue Jul 09 19:07:03 2019 +0200
@@ -19,6 +19,7 @@
 from .Ui_AddProjectDialog import Ui_AddProjectDialog
 
 import Utilities
+import Preferences
 
 
 class AddProjectDialog(QDialog, Ui_AddProjectDialog):
@@ -46,6 +47,8 @@
         
         self.filenamePicker.setMode(E5PathPickerModes.OpenFileMode)
         self.filenamePicker.setFilters(self.tr("Project Files (*.e4p)"))
+        self.filenamePicker.setDefaultDirectory(
+            Preferences.getMultiProject("Workspace"))
         
         if categories:
             self.categoryComboBox.addItem("")

eric ide

mercurial