mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Disable 'Save' button if no entry is selected in the save chooser.
svn-id: r34974
This commit is contained in:
parent
b9b7b85d54
commit
818d87f448
@ -716,7 +716,7 @@ void SaveLoadChooser::updateSelection(bool redraw) {
|
|||||||
|
|
||||||
// Disable these buttons if nothing is selected, or if an empty
|
// Disable these buttons if nothing is selected, or if an empty
|
||||||
// list item is selected.
|
// 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.
|
// Delete will always be disabled if the engine doesn't support it.
|
||||||
_deleteButton->setEnabled(isDeletable && (selItem >= 0) && (!_list->getSelectedString().empty()));
|
_deleteButton->setEnabled(isDeletable && (selItem >= 0) && (!_list->getSelectedString().empty()));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user