Qt: remove duplicate paths in game list

This commit is contained in:
Megamouse 2020-02-20 23:39:49 +01:00
parent 313b967217
commit 171e6c6e54

View File

@ -593,6 +593,10 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter)
}
}
// Remove duplicates
sort(path_list.begin(), path_list.end());
path_list.erase(unique(path_list.begin(), path_list.end()), path_list.end());
QSet<QString> serials;
QMutex mutex_cat;