forked from teamnwah/openmw-tes3coop
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.
This commit is contained in:
parent
02016f4c56
commit
2162d9ed02
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue