E5PathPickerDialog: fixed an issue causing file paths with leading or trailing whitespace being returned. corba_options

Sat, 28 Jul 2018 18:28:55 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 28 Jul 2018 18:28:55 +0200
branch
corba_options
changeset 6441
b7c3b34661d5
parent 6440
81a4bebbc028
child 6442
9d42b6c08a27

E5PathPickerDialog: fixed an issue causing file paths with leading or trailing whitespace being returned.

E5Gui/E5PathPickerDialog.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5PathPickerDialog.py	Sat Jul 28 14:35:06 2018 +0200
+++ b/E5Gui/E5PathPickerDialog.py	Sat Jul 28 18:28:55 2018 +0200
@@ -152,7 +152,7 @@
     # step 2: show the dialog and get the result
     if dlg.exec_() == QDialog.Accepted:
         ok = True
-        path = dlg.getPath()
+        path = dlg.getPath().strip()
     else:
         ok = False
         path = ""

eric ide

mercurial