Hex Editor - fix Find Prev and close Find box when Prev or Next is clicked

This commit is contained in:
adelikat 2014-03-23 19:55:56 +00:00
parent 2d87eeab70
commit 2581dccd90
1 changed files with 5 additions and 1 deletions

View File

@ -199,6 +199,8 @@ namespace BizHawk.Client.EmuHawk
{ {
FindPrev(value, true); // Search the opposite direction if not found FindPrev(value, true); // Search the opposite direction if not found
} }
_hexFind.Close();
} }
public void FindPrev(string value, bool wrap) public void FindPrev(string value, bool wrap)
@ -206,7 +208,7 @@ namespace BizHawk.Client.EmuHawk
var found = -1; var found = -1;
var search = value.Replace(" ", string.Empty).ToUpper(); var search = value.Replace(" ", string.Empty).ToUpper();
if (!string.IsNullOrEmpty(search)) if (string.IsNullOrEmpty(search))
{ {
return; return;
} }
@ -249,6 +251,8 @@ namespace BizHawk.Client.EmuHawk
{ {
FindPrev(value, true); // Search the opposite direction if not found FindPrev(value, true); // Search the opposite direction if not found
} }
_hexFind.Close();
} }
#endregion #endregion