1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-26 04:32:35 +01:00

Qt: streamline game removal in game list and fix followed item selection

This commit is contained in:
Megamouse 2018-05-02 21:57:21 +02:00 committed by Ivan
parent 9a1c0e4577
commit e43afa7148

View File

@ -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);
}
});