diff --git a/plugins/grepview/grepdialog.cpp b/plugins/grepview/grepdialog.cpp --- a/plugins/grepview/grepdialog.cpp +++ b/plugins/grepview/grepdialog.cpp @@ -366,9 +366,9 @@ // We use QFileInfo to make sure this is really a semicolon-separated file list, not a file containing // a semicolon in the name. foreach(const QString& file, semicolonSeparatedFileList) - ret << QUrl::fromLocalFile(file); + ret << QUrl::fromLocalFile(file).adjusted(QUrl::StripTrailingSlash); }else{ - ret << QUrl::fromUserInput(searchPaths->currentText()); + ret << QUrl::fromUserInput(searchPaths->currentText()).adjusted(QUrl::StripTrailingSlash); } } return ret;