forked from qt-creator/qt-creator
Utils: Fix setting the path via slotBrowse()
Amends: 0d7f357294
Change-Id: Iae5e13b5d4d869d7e727f614f540767fca32d770
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -459,8 +459,9 @@ void PathChooser::slotBrowse()
|
||||
window()->activateWindow();
|
||||
|
||||
// Delete trailing slashes unless it is "/" only.
|
||||
if (newPath.endsWith("/") && newPath.path().size() > 1) {
|
||||
newPath = newPath.withNewPath(newPath.path().chopped(1));
|
||||
if (!newPath.isEmpty()) {
|
||||
if (newPath.endsWith("/") && newPath.path().size() > 1)
|
||||
newPath = newPath.withNewPath(newPath.path().chopped(1));
|
||||
setFilePath(newPath);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user