From 555c9dfb45e90b60d9e30909cbdce50ebde1b69b Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 23 Mar 2014 16:58:54 +0000 Subject: [PATCH] Ram Watch - fix bug where it asks you to save changes, but if this is a fresh unsaved list it ignores the Yes button and closes --- BizHawk.Client.EmuHawk/tools/Watch/RamWatch.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/Watch/RamWatch.cs b/BizHawk.Client.EmuHawk/tools/Watch/RamWatch.cs index c30a1e363f..37255d48cc 100644 --- a/BizHawk.Client.EmuHawk/tools/Watch/RamWatch.cs +++ b/BizHawk.Client.EmuHawk/tools/Watch/RamWatch.cs @@ -107,7 +107,14 @@ namespace BizHawk.Client.EmuHawk GlobalWin.Sound.StartSound(); if (result == DialogResult.Yes) { - _watches.Save(); + if (string.IsNullOrWhiteSpace(_watches.CurrentFileName)) + { + SaveAs(); + } + else + { + _watches.Save(); + } } else if (result == DialogResult.No) {