fix #537 Annoyance with "always on top"

This commit is contained in:
zeromus 2015-11-12 17:32:49 -06:00
parent f0e93ce80d
commit 53eae133e7
2 changed files with 3 additions and 3 deletions

View File

@ -157,10 +157,10 @@ namespace BizHawk.Client.EmuHawk.WinFormExtensions
/// <summary>
/// Handles EmuHawk specific issues before showing a modal dialog
/// </summary>
public static DialogResult ShowHawkDialog(this Form form)
public static DialogResult ShowHawkDialog(this Form form, IWin32Window owner = null)
{
GlobalWin.Sound.StopSound();
var result = form.ShowDialog();
var result = (owner == null ? form.ShowDialog() : form.ShowDialog(owner));
GlobalWin.Sound.StartSound();
return result;
}

View File

@ -756,7 +756,7 @@ namespace BizHawk.Client.EmuHawk
MemoryDomains = _memoryDomains
};
we.SetWatch(_watches.Domain);
we.ShowHawkDialog();
we.ShowHawkDialog(this);
if (we.DialogResult == DialogResult.OK)
{
_watches.Add(we.Watches[0]);