mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-07-11 01:24:22 +02:00
Merge pull request #14417 from TryTwo/Cheat_Fix
Bugfix: Cheat codes: Make newly added codes start disabled.
This commit is contained in:
@@ -299,7 +299,7 @@ void ARCodeWidget::AddCode(ActionReplay::ARCode code)
|
|||||||
void ARCodeWidget::OnCodeAddClicked()
|
void ARCodeWidget::OnCodeAddClicked()
|
||||||
{
|
{
|
||||||
ActionReplay::ARCode ar;
|
ActionReplay::ARCode ar;
|
||||||
ar.enabled = true;
|
ar.enabled = false;
|
||||||
|
|
||||||
m_cheat_code_editor->SetARCode(&ar);
|
m_cheat_code_editor->SetARCode(&ar);
|
||||||
if (m_cheat_code_editor->exec() == QDialog::Rejected)
|
if (m_cheat_code_editor->exec() == QDialog::Rejected)
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ void GeckoCodeWidget::OnItemChanged(QListWidgetItem* item)
|
|||||||
void GeckoCodeWidget::AddCode()
|
void GeckoCodeWidget::AddCode()
|
||||||
{
|
{
|
||||||
Gecko::GeckoCode code;
|
Gecko::GeckoCode code;
|
||||||
code.enabled = true;
|
code.enabled = false;
|
||||||
|
|
||||||
m_cheat_code_editor->SetGeckoCode(&code);
|
m_cheat_code_editor->SetGeckoCode(&code);
|
||||||
if (m_cheat_code_editor->exec() == QDialog::Rejected)
|
if (m_cheat_code_editor->exec() == QDialog::Rejected)
|
||||||
|
|||||||
Reference in New Issue
Block a user