Browse Source

Start-path for session chooser is now the dir in the text field

master
Nils 4 years ago
parent
commit
ae9b8309c0
  1. 7
      template/qtgui/chooseSessionDirectory.py

7
template/qtgui/chooseSessionDirectory.py

@ -88,7 +88,12 @@ class ChooseSessionDirectory(QtWidgets.QDialog):
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:
self.ui.pathComboBox.setCurrentText(dirname)

Loading…
Cancel
Save