[change] if folder selection is canceled do not empty editable text
This commit is contained in:
parent
dc38bd6e79
commit
9288a169a4
@ -1381,6 +1381,8 @@ class LocalisationTab(PropTab):
|
||||
|
||||
def selectDirectory(self, edit):
|
||||
selected_directory = QFileDialog.getExistingDirectory()
|
||||
# check if string is empty
|
||||
if selected_directory:
|
||||
edit.setText(selected_directory)
|
||||
|
||||
def getValues(self):
|
||||
|
Loading…
Reference in New Issue
Block a user