svn-id: r34264
This commit is contained in:
Max Horn 2008-09-01 21:30:38 +00:00
parent 40e05acff3
commit 900f95ba5b

View File

@ -968,12 +968,13 @@ void LauncherDialog::loadGame(int item) {
if (_loadDialog->delSave()) {
String filename = saveList[idx].filename();
//printf("Deleting file: %s\n", filename.c_str());
MessageDialog alert("Do you really want to delete this savegame?",
"Yes", "No");
MessageDialog alert("Do you really want to delete this savegame?",
"Delete", "Cancel");
if (alert.runModal() == GUI::kMessageOK) {
saveFileMan->removeSavefile(filename.c_str());
if ((saveList.size() - 1) == 0)
ConfMan.setInt("save_slot", -1);
if ((saveList.size() - 1) == 0) {
//ConfMan.setInt("save_slot", -1);
}
}
}
// Load the savegame