266 """ |
266 """ |
267 Public slot used to add files to the project. |
267 Public slot used to add files to the project. |
268 |
268 |
269 @param startdir start directory for the selection dialog (string) |
269 @param startdir start directory for the selection dialog (string) |
270 """ |
270 """ |
271 if startdir is None: |
271 if not startdir: |
272 startdir = self.ppath |
272 startdir = self.ppath |
|
273 if not startdir: |
|
274 startdir = Preferences.getMultiProject("Workspace") |
273 dlg = AddProjectDialog(self.ui, startdir=startdir) |
275 dlg = AddProjectDialog(self.ui, startdir=startdir) |
274 if dlg.exec_() == QDialog.Accepted: |
276 if dlg.exec_() == QDialog.Accepted: |
275 name, filename, isMaster, description = dlg.getData() |
277 name, filename, isMaster, description = dlg.getData() |
276 |
278 |
277 # step 1: check, if project was already added |
279 # step 1: check, if project was already added |