From 2162d9ed02223f7f84de6761acc23c5533277133 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 29 Mar 2016 01:28:13 +0200 Subject: [PATCH] Restore key focus to the save list when the deletion confirmation messagebox is accepted Gives me an idea for a new MyGUI feature - per-window widget focus as it is usually the case in other GUI toolkits. --- apps/openmw/mwgui/savegamedialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwgui/savegamedialog.cpp b/apps/openmw/mwgui/savegamedialog.cpp index b3f04ae40..c4d9bae30 100644 --- a/apps/openmw/mwgui/savegamedialog.cpp +++ b/apps/openmw/mwgui/savegamedialog.cpp @@ -87,6 +87,7 @@ namespace MWGui MWBase::Environment::get().getStateManager()->deleteGame (mCurrentCharacter, mCurrentSlot); mSaveList->removeItemAt(mSaveList->getIndexSelected()); onSlotSelected(mSaveList, mSaveList->getIndexSelected()); + MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mSaveList); if (mSaveList->getItemCount() == 0) {