Skip to content
Snippets Groups Projects
Commit 0f2ed78a authored by Alexander Potashev's avatar Alexander Potashev
Browse files

grepview: Fix search in project root with trailing slash

Summary:
Search in files did not work if you choose to search in the current
project and then append a "/" to the location (e.g.
"/home/user/kdevplatform/").

Reviewers: kfunk, mwolff

Reviewed By: kfunk

Subscribers: kdevelop-devel

Differential Revision: https://phabricator.kde.org/D4774
parent 2d04564d
No related branches found
No related tags found
No related merge requests found
......@@ -366,9 +366,9 @@ QList< QUrl > GrepDialog::getDirectoryChoice() const
// 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment