From 53cda95ca56c8415d3f76e89495783a5cd0756ff Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 31 Jan 2015 01:52:29 +0000 Subject: [PATCH] Lua Console - don't nag to save a session, unless a session exists --- BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs b/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs index 989acce00a..5b6abd1f32 100644 --- a/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs +++ b/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs @@ -549,7 +549,7 @@ namespace BizHawk.Client.EmuHawk public bool AskSaveChanges() { - if (_luaList.Changes) + if (_luaList.Changes && !string.IsNullOrEmpty(_luaList.Filename)) { GlobalWin.Sound.StopSound(); var result = MessageBox.Show("Save changes to session?", "Lua Console", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button3);