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.
pull/2979/head^2
scrawl 9 years ago
parent 02016f4c56
commit 2162d9ed02

@ -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)
{

Loading…
Cancel
Save