1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Qt: clear game items before clearing the game list

This commit is contained in:
Megamouse 2023-04-28 15:25:26 +02:00
parent 6af81d649f
commit f080798000

View File

@ -2839,6 +2839,11 @@ void game_list_frame::PopulateGameGrid(int maxCols, const QSize& image_size, con
const std::string selected_item = CurrentSelectionPath();
// Release old data
for (const auto& game : m_game_data)
{
game->item = nullptr;
}
m_game_list->clear_list();
m_game_grid->deleteLater();
@ -2858,8 +2863,6 @@ void game_list_frame::PopulateGameGrid(int maxCols, const QSize& image_size, con
for (const auto& app : m_game_data)
{
app->item = nullptr;
if (IsEntryVisible(app))
{
matching_apps.push_back(app);