Commit 186a12ec authored by Orgad Shaneh's avatar Orgad Shaneh Committed by David Schulz
Browse files

Locator: Use display name for open documents entries

Task-number: QTCREATORBUG-7000
Change-Id: Ibeafebdcd9aee44ab0d69e2d7dc156c06acf6618
Reviewed-by: default avatarDavid Schulz <>
parent aff40bd1
......@@ -76,7 +76,7 @@ QList<LocatorFilterEntry> OpenDocumentsFilter::matchesFor(QFutureInterface<Core:
QString displayName = editorEntry.displayName();
if (regexp.exactMatch(displayName)) {
QFileInfo fi(fileName);
LocatorFilterEntry fiEntry(this, fi.fileName(), QString(fileName + lineNoSuffix));
LocatorFilterEntry fiEntry(this, displayName, QString(fileName + lineNoSuffix));
fiEntry.extraInfo = FileUtils::shortNativePath(FileName(fi));
fiEntry.fileName = fileName;
QList<LocatorFilterEntry> &category = displayName.startsWith(entry, caseSensitivityForPrefix)
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