mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
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
@ -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…
x
Reference in New Issue
Block a user