[Scummvm-cvs-logs] CVS: scummvm/gui launcher.cpp,1.62,1.63
Max Horn
fingolfin at users.sourceforge.net
Sun Nov 2 03:33:03 CET 2003
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv16082
Modified Files:
launcher.cpp
Log Message:
ask before removing a game config
Index: launcher.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/launcher.cpp,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- launcher.cpp 2 Nov 2003 02:18:14 -0000 1.62
+++ launcher.cpp 2 Nov 2003 11:32:18 -0000 1.63
@@ -340,17 +340,23 @@
}
}
break;
- case kRemoveGameCmd:
- // Remove the currently selected game from the list
- assert(item >= 0);
- ConfMan.removeGameDomain(_domains[item]);
-
- // Write config to disk
- ConfMan.flushToDisk();
+ case kRemoveGameCmd: {
+
+ MessageDialog alert("Do you really want to remove this game configuration?", "Yes", "No");
- // Update the ListWidget and force a redraw
- updateListing();
- draw();
+ if (alert.runModal() == 1) {
+ // Remove the currently selected game from the list
+ assert(item >= 0);
+ ConfMan.removeGameDomain(_domains[item]);
+
+ // Write config to disk
+ ConfMan.flushToDisk();
+
+ // Update the ListWidget and force a redraw
+ updateListing();
+ draw();
+ }
+ }
break;
case kEditGameCmd: {
// Set game specifc options. Most of these should be "optional", i.e. by
More information about the Scummvm-git-logs
mailing list