|
@ -88,7 +88,12 @@ class ChooseSessionDirectory(QtWidgets.QDialog): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def requestPathFromDialog(self): |
|
|
def requestPathFromDialog(self): |
|
|
dirname = QtWidgets.QFileDialog.getExistingDirectory(self, QtCore.QCoreApplication.translate("TemplateChooseSessionDirectory", "Choose Session Directory"), str(Path.home())) |
|
|
if self.ui.pathComboBox.currentText() == gettempdir(): |
|
|
|
|
|
startPath = str(Path.home()) |
|
|
|
|
|
else: |
|
|
|
|
|
startPath = self.ui.pathComboBox.currentText() |
|
|
|
|
|
dirname = QtWidgets.QFileDialog.getExistingDirectory(self, QtCore.QCoreApplication.translate("TemplateChooseSessionDirectory", "Choose Session Directory"), startPath) |
|
|
|
|
|
|
|
|
if dirname: |
|
|
if dirname: |
|
|
self.ui.pathComboBox.setCurrentText(dirname) |
|
|
self.ui.pathComboBox.setCurrentText(dirname) |
|
|
|
|
|
|
|
|