mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Fix typo causing "Remove from Watch" in Cheat Manager to crash Dolphin
This commit is contained in:
@ -163,7 +163,7 @@ void CheatsManager::OnWatchContextMenu()
|
|||||||
QMenu* menu = new QMenu(this);
|
QMenu* menu = new QMenu(this);
|
||||||
|
|
||||||
menu->addAction(tr("Remove from Watch"), this, [this] {
|
menu->addAction(tr("Remove from Watch"), this, [this] {
|
||||||
auto* item = m_match_table->selectedItems()[0];
|
auto* item = m_watch_table->selectedItems()[0];
|
||||||
|
|
||||||
int index = item->data(INDEX_ROLE).toInt();
|
int index = item->data(INDEX_ROLE).toInt();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user