Fix issue 157

This commit is contained in:
adelikat 2014-04-25 20:29:18 +00:00
parent d11bec528e
commit 8952e61067
3 changed files with 4 additions and 7 deletions

View File

@ -60,8 +60,8 @@ namespace BizHawk.Client.EmuHawk
AddressBox.SetHexProperties(_watchList[0].Domain.Size);
AddressBox.Text = _watchList.Select(a => a.AddressString).Distinct().Aggregate((addrStr, nextStr) => addrStr + ("," + nextStr));
ValueHexLabel.Text = _watchList[0].Type == Watch.DisplayType.Hex ? "0x" : String.Empty;
ValueBox.Text = _watchList[0].ValueString.Replace(" ", String.Empty);
ValueHexLabel.Text = _watchList[0].Type == Watch.DisplayType.Hex ? "0x" : string.Empty;
ValueBox.Text = _watchList[0].ValueString.Replace(" ", string.Empty);
DomainLabel.Text = _watchList[0].Domain.Name;
SizeLabel.Text = _watchList[0].Size.ToString();
DisplayTypeLabel.Text = Watch.DisplayTypeToString(_watchList[0].Type);

View File

@ -724,10 +724,7 @@ namespace BizHawk.Client.EmuHawk
InitialLocation = GetPromptPoint()
};
if (SelectedWatches.Any())
{
poke.SetWatch(SelectedWatches);
}
poke.SetWatch(SelectedWatches);
if (poke.ShowHawkDialog() == DialogResult.OK)
{

View File

@ -75,8 +75,8 @@ namespace BizHawk.Client.EmuHawk
get { return _type; }
set
{
int? val = ToRawInt();
_type = value;
int? val = ToRawInt();
SetMaxLength();
SetFromRawInt(val);
}