diff --git a/src/plugins/coreplugin/locator/filesystemfilter.cpp b/src/plugins/coreplugin/locator/filesystemfilter.cpp index 95c9bf16ea2..9e0751e570f 100644 --- a/src/plugins/coreplugin/locator/filesystemfilter.cpp +++ b/src/plugins/coreplugin/locator/filesystemfilter.cpp @@ -176,8 +176,9 @@ void FileSystemFilter::accept(LocatorFilterEntry selection, { Q_UNUSED(selectionLength) if (selection.filePath.isDir()) { - const QString value = shortcutString() + ' ' - + selection.filePath.absoluteFilePath().toUserOutput() + '/'; + const QString value + = shortcutString() + ' ' + + selection.filePath.absoluteFilePath().cleanPath().pathAppended("/").toUserOutput(); *newText = value; *selectionStart = value.length(); } else {