From c198dd3c6cee92dd780ef97fa1be8385ceae0785 Mon Sep 17 00:00:00 2001 From: Vicki Pfau <vi@endrift.com> Date: Wed, 24 Feb 2021 19:53:40 -0800 Subject: [PATCH] Qt: Select newly added cheat set after adding it --- src/platform/qt/CheatsView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/qt/CheatsView.cpp b/src/platform/qt/CheatsView.cpp index 0a195af5c..9120e358b 100644 --- a/src/platform/qt/CheatsView.cpp +++ b/src/platform/qt/CheatsView.cpp @@ -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() {