diff options
author | Johannes Schickel | 2012-07-24 23:25:10 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-07-24 23:25:10 +0200 |
commit | 91196e53750f328b30703ffd09cbf3f5e877dc8e (patch) | |
tree | 8dbaf50ff60984bef344271b5907e6dfdb26b816 /gui | |
parent | 89b638128ff0482a01cfd3d058d87aa95faf58c3 (diff) | |
download | scummvm-rg350-91196e53750f328b30703ffd09cbf3f5e877dc8e.tar.gz scummvm-rg350-91196e53750f328b30703ffd09cbf3f5e877dc8e.tar.bz2 scummvm-rg350-91196e53750f328b30703ffd09cbf3f5e877dc8e.zip |
GUI: Also disable the switch-to-list button in the choosers, when the grid one isn't available.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/saveload-dialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp index 2ceace2c8a..159e9617ad 100644 --- a/gui/saveload-dialog.cpp +++ b/gui/saveload-dialog.cpp @@ -125,8 +125,10 @@ void SaveLoadChooserDialog::addChooserButtons() { _listButton = createSwitchButton("SaveLoadChooser.ListSwitch", "L", _("List view"), ThemeEngine::kImageList, kListSwitchCmd); _gridButton = createSwitchButton("SaveLoadChooser.GridSwitch", "G", _("Grid view"), ThemeEngine::kImageGrid, kGridSwitchCmd); - if (!_metaInfoSupport || !_thumbnailSupport || !(g_gui.getWidth() >= 640 && g_gui.getHeight() >= 400)) + if (!_metaInfoSupport || !_thumbnailSupport || !(g_gui.getWidth() >= 640 && g_gui.getHeight() >= 400)) { _gridButton->setEnabled(false); + _listButton->setEnabled(false); + } } void SaveLoadChooserDialog::reflowLayout() { |