mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Qt: clear game items before clearing the game list
This commit is contained in:
parent
6af81d649f
commit
f080798000
1 changed files with 5 additions and 2 deletions
|
@ -2839,6 +2839,11 @@ void game_list_frame::PopulateGameGrid(int maxCols, const QSize& image_size, con
|
||||||
const std::string selected_item = CurrentSelectionPath();
|
const std::string selected_item = CurrentSelectionPath();
|
||||||
|
|
||||||
// Release old data
|
// Release old data
|
||||||
|
for (const auto& game : m_game_data)
|
||||||
|
{
|
||||||
|
game->item = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
m_game_list->clear_list();
|
m_game_list->clear_list();
|
||||||
m_game_grid->deleteLater();
|
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)
|
for (const auto& app : m_game_data)
|
||||||
{
|
{
|
||||||
app->item = nullptr;
|
|
||||||
|
|
||||||
if (IsEntryVisible(app))
|
if (IsEntryVisible(app))
|
||||||
{
|
{
|
||||||
matching_apps.push_back(app);
|
matching_apps.push_back(app);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue