Commit d9af2e05 authored by Eike Ziller's avatar Eike Ziller

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: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 58d53ebd
......@@ -119,7 +119,7 @@ QList<LocatorFilterEntry> FileSystemFilter::matchesFor(QFutureInterface<LocatorF
// file names can match with +linenumber or :linenumber
name = entry;
const QString lineNoSuffix = EditorManager::splitLineNumber(&name);
name = Utils::FileName::fromString(name).fileName();
name = QFileInfo(name).fileName();
foreach (const QString &file, files) {
if (future.isCanceled())
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment