GUI: Fix saving in a new slot with the list save dialog

This revert part of a17816f1 (GUI: Warn when saving a "young" game
over an "older" one).

The issue was that when trying to save in a new slot with the list
save dialog, this was not creating the save.

This finishes to fix bug #12850
This commit is contained in:
Thierry Crozat 2021-08-27 23:28:14 +01:00
parent 626d0ed4b6
commit 0425dff824

View file

@ -597,8 +597,6 @@ void SaveLoadChooserSimple::updateSelection(bool redraw) {
if (selItem >= 0 && _metaInfoSupport) {
SaveStateDescriptor desc = (_saveList[selItem].getLocked() ? _saveList[selItem] : _metaEngine->querySaveMetaInfos(_target.c_str(), _saveList[selItem].getSaveSlot()));
if (!_saveList[selItem].getLocked())
_saveList[selItem] = desc;
isDeletable = desc.getDeletableFlag() && _delSupport;
isWriteProtected = desc.getWriteProtectedFlag() ||