From 6d37cd7e86fcf8bcbdac2ca970b7e5915ec7ada8 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 26 Jan 2014 15:28:05 +0100 Subject: [PATCH] Savegame dialog: Don't allow empty save names --- apps/openmw/mwgui/savegamedialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/openmw/mwgui/savegamedialog.cpp b/apps/openmw/mwgui/savegamedialog.cpp index da0417e7b..d7c5c3a94 100644 --- a/apps/openmw/mwgui/savegamedialog.cpp +++ b/apps/openmw/mwgui/savegamedialog.cpp @@ -132,6 +132,11 @@ namespace MWGui if (mSaving) { + if (mSaveNameEdit->getCaption().empty()) + { + MWBase::Environment::get().getWindowManager()->messageBox("#{sNotifyMessage65}"); + return; + } MWBase::Environment::get().getStateManager()->saveGame (mSaveNameEdit->getCaption(), slot); } else