Merge pull request #7280 from Techjar/qt-cheats-manager-crash

Qt/CheatsManager: Fix segfault in GenerateARCode
This commit is contained in:
Mat M 2018-07-18 18:05:45 -04:00 committed by GitHub
commit bcdffdfe63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ void CheatsManager::GenerateARCode()
if (!m_ar_code)
return;
auto* item = m_match_table->selectedItems()[0];
auto* item = m_watch_table->selectedItems()[0];
int index = item->data(INDEX_ROLE).toInt();
ActionReplay::ARCode ar_code;