[change] if folder selection is canceled do not empty editable text

This commit is contained in:
Sebastian Wehling-Benatelli 2016-09-26 14:45:36 +02:00
parent dc38bd6e79
commit 9288a169a4

View File

@ -1381,7 +1381,9 @@ class LocalisationTab(PropTab):
def selectDirectory(self, edit): def selectDirectory(self, edit):
selected_directory = QFileDialog.getExistingDirectory() selected_directory = QFileDialog.getExistingDirectory()
edit.setText(selected_directory) # check if string is empty
if selected_directory:
edit.setText(selected_directory)
def getValues(self): def getValues(self):
loctool = self.locToolComboBox.currentText() loctool = self.locToolComboBox.currentText()