all repos — mgba @ c198dd3c6cee92dd780ef97fa1be8385ceae0785

mGBA Game Boy Advance Emulator

Qt: Select newly added cheat set after adding it
Vicki Pfau vi@endrift.com
Wed, 24 Feb 2021 19:53:40 -0800
commit

c198dd3c6cee92dd780ef97fa1be8385ceae0785

parent

910089b51455956132a72892ec8fa6a869ef74d8

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/CheatsView.cppsrc/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() {