[Scummvm-cvs-logs] CVS: scummvm/gui ListWidget.cpp,1.13,1.14

Max Horn fingolfin at users.sourceforge.net
Sat Jul 27 07:21:02 CEST 2002


Update of /cvsroot/scummvm/scummvm/gui
In directory usw-pr-cvs1:/tmp/cvs-serv30041

Modified Files:
	ListWidget.cpp 
Log Message:
changing the selection aborts editing, too!

Index: ListWidget.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/ListWidget.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- ListWidget.cpp	27 Jul 2002 14:16:02 -0000	1.13
+++ ListWidget.cpp	27 Jul 2002 14:19:59 -0000	1.14
@@ -68,8 +68,8 @@
 		_selectedItem = (y - 2) / LINE_HEIGHT + _currentPos;
 
 		if (_editMode && oldSelectedItem != _selectedItem) {
-			// loose caret
-			_list[_selectedItem].deleteLastChar();
+			// undo any changes made
+			_list[oldSelectedItem] = _backupString;
 			_editMode = false;
 		}
 		draw();





More information about the Scummvm-git-logs mailing list