From 91f2d36a37d9f54ad4e95c2d654282a5685bd3be Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 15 Oct 2015 01:21:05 -0500 Subject: [PATCH] fix some flakiness in the cheat editor dialog. i can't describe it more precisely than that. --- BizHawk.Client.EmuHawk/tools/Cheats/CheatEdit.cs | 10 +++++----- BizHawk.Client.EmuHawk/tools/Cheats/Cheats.cs | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/Cheats/CheatEdit.cs b/BizHawk.Client.EmuHawk/tools/Cheats/CheatEdit.cs index 3543d3af04..729eb90a01 100644 --- a/BizHawk.Client.EmuHawk/tools/Cheats/CheatEdit.cs +++ b/BizHawk.Client.EmuHawk/tools/Cheats/CheatEdit.cs @@ -63,11 +63,6 @@ namespace BizHawk.Client.EmuHawk AddressBox.SetHexProperties(_cheat.Domain.Size); - NameBox.Text = _cheat.Name; - AddressBox.Text = _cheat.AddressStr; - ValueBox.Text = _cheat.ValueStr; - CompareBox.Text = _cheat.Compare.HasValue ? _cheat.CompareStr : String.Empty; - ValueBox.ByteSize = CompareBox.ByteSize = _cheat.Size; @@ -82,6 +77,11 @@ namespace BizHawk.Client.EmuHawk BigEndianCheckBox.Checked = _cheat.BigEndian.Value; + NameBox.Text = _cheat.Name; + AddressBox.Text = _cheat.AddressStr; + ValueBox.Text = _cheat.ValueStr; + CompareBox.Text = _cheat.Compare.HasValue ? _cheat.CompareStr : String.Empty; + CheckFormState(); if (!_cheat.Compare.HasValue) { diff --git a/BizHawk.Client.EmuHawk/tools/Cheats/Cheats.cs b/BizHawk.Client.EmuHawk/tools/Cheats/Cheats.cs index c83f47b1ba..fcca55df1a 100644 --- a/BizHawk.Client.EmuHawk/tools/Cheats/Cheats.cs +++ b/BizHawk.Client.EmuHawk/tools/Cheats/Cheats.cs @@ -629,7 +629,6 @@ namespace BizHawk.Client.EmuHawk private void CheatListView_Click(object sender, EventArgs e) { - DoSelectedIndexChange(); } private void CheatListView_DoubleClick(object sender, EventArgs e)