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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 13 Jan 2013 16:56:27 +0100
branch
5_3_x
changeset 2343
07d087bc1f9d
parent 2335
a30a3798a772
child 2344
609b8b070cf3

Added the 'Workspace' to the selection criteria for the multi project's 'Add Project' action.
(grafted from ba67938138b94ef1ced14d1806f087d06dd90a44)

MultiProject/MultiProject.py file | annotate | diff | comparison | revisions
--- a/MultiProject/MultiProject.py	Sun Jan 13 12:56:00 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