Reset selected slot when close savegame dialogue to avoid accidental saving/loading

pull/578/head
Andrei Kortunov 5 years ago
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…
Cancel
Save