diff options
-rw-r--r-- | gui/saveload-dialog.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp index 2702cbe31b..d0132d91ef 100644 --- a/gui/saveload-dialog.cpp +++ b/gui/saveload-dialog.cpp @@ -264,11 +264,17 @@ void SaveLoadChooserDialog::handleTickle() { void SaveLoadChooserDialog::reflowLayout() { #ifndef DISABLE_SAVELOADCHOOSER_GRID - addChooserButtons(); - const SaveLoadChooserType currentType = getType(); const SaveLoadChooserType requestedType = getRequestedSaveLoadDialog(*_metaEngine); + addChooserButtons(); + if (currentType == kSaveLoadDialogList) { + _listButton->setEnabled(false); + } + if (currentType == kSaveLoadDialogGrid) { + _gridButton->setEnabled(false); + } + // Change the dialog type if there is any need for it. if (requestedType != currentType) { setResult(kSwitchSaveLoadDialog); |