Qt: Select newly added cheat set after adding it

This commit is contained in:
Vicki Pfau 2021-02-24 19:53:40 -08:00
parent 910089b514
commit c198dd3c6c
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ void CheatsView::addSet() {
CoreController::Interrupter interrupter(m_controller);
mCheatSet* set = m_controller->cheatDevice()->createSet(m_controller->cheatDevice(), nullptr);
m_model.addSet(set);
m_ui.cheatList->selectionModel()->select(m_model.index(m_model.rowCount() - 1, 0, QModelIndex()), QItemSelectionModel::ClearAndSelect);
}
void CheatsView::removeSet() {