From ba592070f7154a8a1b26da151bf3bd4806f0b2e9 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 28 May 2023 13:44:46 +0200 Subject: [PATCH] Qt: fix random initial game selection in trophy dir --- rpcs3/rpcs3qt/trophy_manager_dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpcs3/rpcs3qt/trophy_manager_dialog.cpp b/rpcs3/rpcs3qt/trophy_manager_dialog.cpp index 2d68fbd73e..97b9c7f3dc 100644 --- a/rpcs3/rpcs3qt/trophy_manager_dialog.cpp +++ b/rpcs3/rpcs3qt/trophy_manager_dialog.cpp @@ -968,6 +968,7 @@ void trophy_manager_dialog::PopulateGameTable() m_game_table->setRowCount(static_cast(m_trophies_db.size())); m_game_combo->clear(); + m_game_combo->blockSignals(true); qRegisterMetaType>("QVector"); QList indices; @@ -999,6 +1000,8 @@ void trophy_manager_dialog::PopulateGameTable() } m_game_combo->model()->sort(0, Qt::AscendingOrder); + m_game_combo->blockSignals(false); + m_game_combo->setCurrentIndex(0); m_game_table->setSortingEnabled(true); // Enable sorting only after using setItem calls