Implement automatic clearing of "Untitled Savestate" in edit mode of the SaveLoadChooser as requested in feature request #2834637 "GUI: Allow greying out dummy ListWidget entries".
svn-id: r43555
This commit is contained in:
parent
8b0a10ad75
commit
f898cd12e6
3 changed files with 34 additions and 2 deletions
|
@ -278,8 +278,15 @@ void SaveLoadChooser::updateSelection(bool redraw) {
|
|||
// game is write protected
|
||||
_chooseButton->setEnabled(selItem >= 0 && !isWriteProtected);
|
||||
|
||||
if (startEditMode)
|
||||
if (startEditMode) {
|
||||
_list->startEditMode();
|
||||
|
||||
if (_chooseButton->isEnabled() && _list->getSelectedString() == "Untitled savestate" &&
|
||||
_list->getSelectionColor() == ThemeEngine::kFontColorAlternate) {
|
||||
_list->setEditString("");
|
||||
_list->setEditColor(ThemeEngine::kFontColorNormal);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Disable the load button if nothing is selected, or if an empty
|
||||
// list item is selected.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue