Fix so Ram Watch can be closed & reopened without crashing

This commit is contained in:
andres.delikat 2011-01-21 20:28:06 +00:00
parent 6c98828ada
commit 3dd5fdb64f
2 changed files with 2 additions and 1 deletions

View File

@ -794,6 +794,7 @@ namespace BizHawk.MultiClient
private void LoadRamWatch() //TODO: accept a filename parameter and feed it to ram watch for loading
{
RamWatch1 = new RamWatch();
if (Global.Config.AutoLoadRamWatch)
RamWatch1.LoadWatchFromRecent(Global.Config.RecentWatches.GetRecentFileByPosition(0));
RamWatch1.Show();

View File

@ -334,7 +334,7 @@ namespace BizHawk.MultiClient
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
this.Hide();
}
private void newListToolStripMenuItem_Click(object sender, EventArgs e)