63 Private method used to open a directory selection dialog. |
64 Private method used to open a directory selection dialog. |
64 """ |
65 """ |
65 cwd = self.workdirCombo.currentText() |
66 cwd = self.workdirCombo.currentText() |
66 if not cwd: |
67 if not cwd: |
67 cwd = self.projectDirLabel.text() |
68 cwd = self.projectDirLabel.text() |
68 d = QFileDialog.getExistingDirectory( |
69 d = E5FileDialog.getExistingDirectory( |
69 self, |
70 self, |
70 self.trUtf8("Working directory"), |
71 self.trUtf8("Working directory"), |
71 cwd, |
72 cwd, |
72 QFileDialog.Options(QFileDialog.ShowDirsOnly) | |
73 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
73 QFileDialog.DontUseNativeDialog) |
|
74 |
74 |
75 if d: |
75 if d: |
76 self.workdirCombo.setEditText(Utilities.toNativeSeparators(d)) |
76 self.workdirCombo.setEditText(Utilities.toNativeSeparators(d)) |
77 |
77 |
78 def on_commandCombo_editTextChanged(self, text): |
78 def on_commandCombo_editTextChanged(self, text): |