From e43afa71480880ba0307d71ff097c5aaeac6b426 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 2 May 2018 21:57:21 +0200 Subject: [PATCH] Qt: streamline game removal in game list and fix followed item selection --- rpcs3/rpcs3qt/game_list_frame.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 63750f8967..462b0f05c0 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -597,7 +597,14 @@ void game_list_frame::ShowContextMenu(const QPoint &pos) } fs::remove_all(currGame.path); m_game_data.erase(m_game_data.begin() + index); - Refresh(); + if (m_isListLayout) + { + m_gameList->removeRow(m_gameList->currentItem()->row()); + } + else + { + Refresh(); + } LOG_SUCCESS(GENERAL, "Removed %s %s in %s", currGame.category, currGame.name, currGame.path); } });