Disable 'Save' button if no entry is selected in the save chooser.

svn-id: r34974
This commit is contained in:
Johannes Schickel 2008-11-09 20:22:43 +00:00
parent b9b7b85d54
commit 818d87f448

View File

@ -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()));