Qt: Fix no games at all showing up all

This commit is contained in:
spycrab 2017-05-02 23:42:55 +02:00
parent 0031a490c1
commit f18dd7550a

View File

@ -72,10 +72,10 @@ void GameTracker::UpdateDirectory(const QString& dir)
while (it.hasNext()) while (it.hasNext())
{ {
QString path = QFileInfo(it.next()).canonicalFilePath(); QString path = QFileInfo(it.next()).canonicalFilePath();
auto& tracked_file = m_tracked_files[path];
if (m_tracked_files.contains(path)) if (m_tracked_files.contains(path))
{ {
auto& tracked_file = m_tracked_files[path];
if (!tracked_file.contains(dir)) if (!tracked_file.contains(dir))
tracked_file.insert(dir); tracked_file.insert(dir);
} }