[Scummvm-cvs-logs] CVS: scummvm/gui dialog.cpp,1.41,1.42

Max Horn fingolfin at users.sourceforge.net
Sat Dec 6 05:56:04 CET 2003


Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv7311

Modified Files:
	dialog.cpp 
Log Message:
erik's patch for bug #854470

Index: dialog.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/dialog.cpp,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- dialog.cpp	10 Nov 2003 23:40:48 -0000	1.41
+++ dialog.cpp	6 Dec 2003 13:55:50 -0000	1.42
@@ -194,8 +194,10 @@
 	}
 
 	// ESC closes all dialogs by default
-	if (keycode == 27)
+	if (keycode == 27) {
+		setResult(-1);
 		close();
+	}
 
 	// TODO: tab/shift-tab should focus the next/previous focusable widget
 }





More information about the Scummvm-git-logs mailing list