Added the 'Workspace' to the selection criteria for the multi project's 'Add Project' action.

Sun, 13 Jan 2013 16:56:27 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 13 Jan 2013 16:56:27 +0100
changeset 2337
ba67938138b9
parent 2334
fc69ad77e18a
child 2338
aadd0d5635c1

Added the 'Workspace' to the selection criteria for the multi project's 'Add Project' action.

MultiProject/MultiProject.py file | annotate | diff | comparison | revisions
--- a/MultiProject/MultiProject.py	Sat Jan 12 18:44:39 2013 +0100
+++ b/MultiProject/MultiProject.py	Sun Jan 13 16:56:27 2013 +0100
@@ -268,8 +268,10 @@
         
         @param startdir start directory for the selection dialog (string)
         """
-        if startdir is None:
+        if not startdir:
             startdir = self.ppath
+        if not startdir:
+            startdir = Preferences.getMultiProject("Workspace")
         dlg = AddProjectDialog(self.ui, startdir=startdir)
         if dlg.exec_() == QDialog.Accepted:
             name, filename, isMaster, description = dlg.getData()

eric ide

mercurial