aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-09-14 19:16:08 +0000
committerJohannes Schickel2008-09-14 19:16:08 +0000
commitda92fb470c07376ad0feb2360078edd1a9124141 (patch)
treece5ec4b5c6c712f76c96f9a34f6ea72a28a0e1cd
parent20a7a9112ffb454a4769f345825916d404e7b083 (diff)
downloadscummvm-rg350-da92fb470c07376ad0feb2360078edd1a9124141.tar.gz
scummvm-rg350-da92fb470c07376ad0feb2360078edd1a9124141.tar.bz2
scummvm-rg350-da92fb470c07376ad0feb2360078edd1a9124141.zip
Fix for bug #2090879 "GUI: Launcher 'Load' dialog should preserve save slot index".
svn-id: r34534
-rw-r--r--gui/launcher.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 8a0b712031..6e66c819cd 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -513,7 +513,7 @@ SaveLoadChooser::SaveLoadChooser(const String &title, const String &buttonLabel)
// Add choice list
_list = new GUI::ListWidget(this, "scummsaveload_list");
- _list->setNumberingMode(GUI::kListNumberingZero);
+ _list->setNumberingMode(GUI::kListNumberingOff);
_container = new GUI::ContainerWidget(this, 0, 0, 10, 10);
_container->setHints(GUI::THEME_HINT_USE_SHADOW);
@@ -625,8 +625,13 @@ void SaveLoadChooser::updateSaveList() {
_saveList = (*_plugin)->listSaves(_target.c_str());
StringList saveNames;
- for (SaveStateList::const_iterator x = _saveList.begin(); x != _saveList.end(); ++x)
- saveNames.push_back(x->description());
+ for (SaveStateList::const_iterator x = _saveList.begin(); x != _saveList.end(); ++x) {
+ Common::String description = x->save_slot();
+ description += ". ";
+ description += x->description();
+
+ saveNames.push_back(description);
+ }
_list->setList(saveNames);
}