Ram Search - Fix crash bug when user would click Save and then cancel the save dialog

This commit is contained in:
andres.delikat 2011-09-10 21:06:50 +00:00
parent b0235e08f0
commit b977ca94e9
1 changed files with 4 additions and 2 deletions

View File

@ -1563,8 +1563,10 @@ namespace BizHawk.MultiClient
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
if (string.Compare(currentSearchFile, "") == 0) SaveAs();
SaveSearchFile(currentSearchFile);
if (string.Compare(currentSearchFile, "") == 0)
SaveAs();
else
SaveSearchFile(currentSearchFile);
}
private void addSelectedToRamWatchToolStripMenuItem_Click(object sender, EventArgs e)