|
|
@ -86,8 +86,10 @@ namespace MWGui
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MWBase::Environment::get().getStateManager()->deleteGame (mCurrentCharacter, mCurrentSlot);
|
|
|
|
MWBase::Environment::get().getStateManager()->deleteGame (mCurrentCharacter, mCurrentSlot);
|
|
|
|
mSaveList->removeItemAt(mSaveList->getIndexSelected());
|
|
|
|
mSaveList->removeItemAt(mSaveList->getIndexSelected());
|
|
|
|
onSlotSelected(mSaveList, MyGUI::ITEM_NONE);
|
|
|
|
onSlotSelected(mSaveList, mSaveList->getIndexSelected());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mSaveList->getItemCount() == 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
// The character might be deleted now
|
|
|
|
// The character might be deleted now
|
|
|
|
size_t previousIndex = mCharacterSelection->getIndexSelected();
|
|
|
|
size_t previousIndex = mCharacterSelection->getIndexSelected();
|
|
|
|
open();
|
|
|
|
open();
|
|
|
@ -98,6 +100,7 @@ namespace MWGui
|
|
|
|
onCharacterSelected(mCharacterSelection, nextCharacter);
|
|
|
|
onCharacterSelected(mCharacterSelection, nextCharacter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void SaveGameDialog::onSaveNameChanged(MyGUI::EditBox *sender)
|
|
|
|
void SaveGameDialog::onSaveNameChanged(MyGUI::EditBox *sender)
|
|
|
|
{
|
|
|
|
{
|
|
|
|