Skip to content
Snippets Groups Projects
Commit d9af2e05 authored by Eike Ziller's avatar Eike Ziller
Browse files

FileSystemFilter: Use QFileInfo::fileName instead of FileName::fileName


The input can well be relative, and contain slashes at the end...

Change-Id: Id4fd65474f2b9c23824f7a822c6e29cf443e1058
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 58d53ebd
Branches
Tags
No related merge requests found
...@@ -119,7 +119,7 @@ QList<LocatorFilterEntry> FileSystemFilter::matchesFor(QFutureInterface<LocatorF ...@@ -119,7 +119,7 @@ QList<LocatorFilterEntry> FileSystemFilter::matchesFor(QFutureInterface<LocatorF
// file names can match with +linenumber or :linenumber // file names can match with +linenumber or :linenumber
name = entry; name = entry;
const QString lineNoSuffix = EditorManager::splitLineNumber(&name); const QString lineNoSuffix = EditorManager::splitLineNumber(&name);
name = Utils::FileName::fromString(name).fileName(); name = QFileInfo(name).fileName();
foreach (const QString &file, files) { foreach (const QString &file, files) {
if (future.isCanceled()) if (future.isCanceled())
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment