Qt: Select newly added cheat set after adding it
Vicki Pfau vi@endrift.com
Wed, 24 Feb 2021 19:53:40 -0800
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/CheatsView.cpp
→
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() {