Merge pull request #5358 from spycrab/qt_list_fix

Qt: Fix no games at all showing up all
This commit is contained in:
Markus Wick 2017-05-02 23:48:05 +02:00 committed by GitHub
commit b21174c326
1 changed files with 1 additions and 1 deletions

View File

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