Commit df6c0769 authored by Eike Ziller's avatar Eike Ziller
Browse files

Locator: Fix case sensitivity of file system filter

Since the path must have correct case (for case sensitive file systems),
we should only take into account if the "file name" part of the search
string is all lowercase or not.

Change-Id: I6bd49f7ac37cbdd39b995a75f1b81083c9df74d3
Task-number: QTCREATORBUG-10843
Reviewed-by: default avatarNikolai Kosjar <>
parent d38eabac
......@@ -89,7 +89,9 @@ QList<LocatorFilterEntry> FileSystemFilter::matchesFor(QFutureInterface<Core::Lo
dirFilter |= QDir::Hidden;
fileFilter |= QDir::Hidden;
const Qt::CaseSensitivity caseSensitivity_ = caseSensitivity(entry);
// use only 'name' for case sensitivity decision, because we need to make the path
// match the case on the file system for case-sensitive file systems
const Qt::CaseSensitivity caseSensitivity_ = caseSensitivity(name);
QStringList dirs = dirInfo.entryList(dirFilter,
QStringList files = dirInfo.entryList(fileFilter,
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