1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-24 19:52:37 +01:00

Qt: fix random initial game selection in trophy dir

This commit is contained in:
Megamouse 2023-05-28 13:44:46 +02:00
parent 6a2ea62f82
commit ba592070f7

View File

@ -968,6 +968,7 @@ void trophy_manager_dialog::PopulateGameTable()
m_game_table->setRowCount(static_cast<int>(m_trophies_db.size())); m_game_table->setRowCount(static_cast<int>(m_trophies_db.size()));
m_game_combo->clear(); m_game_combo->clear();
m_game_combo->blockSignals(true);
qRegisterMetaType<QVector<int>>("QVector<int>"); qRegisterMetaType<QVector<int>>("QVector<int>");
QList<int> indices; QList<int> indices;
@ -999,6 +1000,8 @@ void trophy_manager_dialog::PopulateGameTable()
} }
m_game_combo->model()->sort(0, Qt::AscendingOrder); 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 m_game_table->setSortingEnabled(true); // Enable sorting only after using setItem calls