From 171e6c6e545fa6e37dd69d3b8a79be96251f7c80 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 20 Feb 2020 23:39:49 +0100 Subject: [PATCH] Qt: remove duplicate paths in game list --- rpcs3/rpcs3qt/game_list_frame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 6738104431..abae05839a 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -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 serials; QMutex mutex_cat;