125 def on_dirButton_clicked(self): |
125 def on_dirButton_clicked(self): |
126 """ |
126 """ |
127 Private method used to open a directory selection dialog. |
127 Private method used to open a directory selection dialog. |
128 """ |
128 """ |
129 cwd = self.ui.workdirCombo.currentText() |
129 cwd = self.ui.workdirCombo.currentText() |
|
130 if not cwd: |
|
131 cwd = Preferences.getMultiProject("Workspace") |
130 d = E5FileDialog.getExistingDirectory( |
132 d = E5FileDialog.getExistingDirectory( |
131 self, |
133 self, |
132 self.tr("Working directory"), |
134 self.tr("Working directory"), |
133 cwd, |
135 cwd, |
134 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
136 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |