From 818d87f44897d6ede9b201282ca89ced278150a4 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 9 Nov 2008 20:22:43 +0000 Subject: [PATCH] Disable 'Save' button if no entry is selected in the save chooser. svn-id: r34974 --- gui/launcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 2ed028f26aa..761cf0082f9 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()));