aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2008-11-09 20:22:43 +0000
committerJohannes Schickel2008-11-09 20:22:43 +0000
commit818d87f44897d6ede9b201282ca89ced278150a4 (patch)
tree9c65bfa9913c879ae6d9344afd6e2b7c16a01880 /gui
parentb9b7b85d543a19c2e73abf0cf845b42c5e7480d6 (diff)
downloadscummvm-rg350-818d87f44897d6ede9b201282ca89ced278150a4.tar.gz
scummvm-rg350-818d87f44897d6ede9b201282ca89ced278150a4.tar.bz2
scummvm-rg350-818d87f44897d6ede9b201282ca89ced278150a4.zip
Disable 'Save' button if no entry is selected in the save chooser.
svn-id: r34974
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 2ed028f26a..761cf0082f 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -716,7 +716,7 @@ void SaveLoadChooser::updateSelection(bool redraw) {
// Disable these buttons if nothing is selected, or if an empty
// list item is selected.
- _chooseButton->setEnabled((selItem >= 0 && (!_list->getSelectedString().empty())) || (_list->isEditable() && !isWriteProtected));
+ _chooseButton->setEnabled(selItem >= 0 && ((!_list->getSelectedString().empty())) || (_list->isEditable() && !isWriteProtected));
// Delete will always be disabled if the engine doesn't support it.
_deleteButton->setEnabled(isDeletable && (selItem >= 0) && (!_list->getSelectedString().empty()));