Commit aa2e1353 authored by Eike Ziller's avatar Eike Ziller

Fix initial directory of file system locator filter

Broke with 08f807a1

Task-number: QTCREATORBUG-16242
Change-Id: If630e37d546815cb1347d51d3c2af5f4033e47bd
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 338d0cea
......@@ -80,7 +80,7 @@ QList<LocatorFilterEntry> FileSystemFilter::matchesFor(QFutureInterface<LocatorF
if (filePath.startsWith(QLatin1String("~/")))
directory.replace(0, 1, QDir::homePath());
else if (!m_currentDocumentDirectory.isEmpty())
directory.prepend(m_currentDocumentDirectory);
directory.prepend(m_currentDocumentDirectory + "/");
}
QDir dirInfo(directory);
QDir::Filters dirFilter = QDir::Dirs|QDir::Drives|QDir::NoDot;
......
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