mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Reset selected slot when close savegame dialogue to avoid accidental saving/loading
This commit is contained in:
parent
50d692a097
commit
3e396a904e
@ -132,6 +132,13 @@ namespace MWGui
|
||||
MWBase::Environment::get().getWindowManager()->injectKeyRelease(MyGUI::KeyCode::None);
|
||||
}
|
||||
|
||||
void SaveGameDialog::onClose()
|
||||
{
|
||||
mSaveList->setIndexSelected(MyGUI::ITEM_NONE);
|
||||
|
||||
WindowModal::onClose();
|
||||
}
|
||||
|
||||
void SaveGameDialog::onOpen()
|
||||
{
|
||||
WindowModal::onOpen();
|
||||
|
@ -20,6 +20,7 @@ namespace MWGui
|
||||
SaveGameDialog();
|
||||
|
||||
virtual void onOpen();
|
||||
virtual void onClose();
|
||||
|
||||
void setLoadOrSave(bool load);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user