mirror of https://github.com/mgba-emu/mgba.git
Qt: Select newly added cheat set after adding it
This commit is contained in:
parent
910089b514
commit
c198dd3c6c
|
@ -126,6 +126,7 @@ void CheatsView::addSet() {
|
||||||
CoreController::Interrupter interrupter(m_controller);
|
CoreController::Interrupter interrupter(m_controller);
|
||||||
mCheatSet* set = m_controller->cheatDevice()->createSet(m_controller->cheatDevice(), nullptr);
|
mCheatSet* set = m_controller->cheatDevice()->createSet(m_controller->cheatDevice(), nullptr);
|
||||||
m_model.addSet(set);
|
m_model.addSet(set);
|
||||||
|
m_ui.cheatList->selectionModel()->select(m_model.index(m_model.rowCount() - 1, 0, QModelIndex()), QItemSelectionModel::ClearAndSelect);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheatsView::removeSet() {
|
void CheatsView::removeSet() {
|
||||||
|
|
Loading…
Reference in New Issue