[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
- Previous message: [Scummvm-cvs-logs] CVS: scummvm newgui.cpp,1.28,1.29 newgui.h,1.21,1.22
- Next message: [Scummvm-cvs-logs] CVS: scummvm sound.cpp,1.114,1.115 config-file.cpp,1.12,1.13 config-file.h,1.5,1.6 gameDetector.cpp,1.78,1.79
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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();
- Previous message: [Scummvm-cvs-logs] CVS: scummvm newgui.cpp,1.28,1.29 newgui.h,1.21,1.22
- Next message: [Scummvm-cvs-logs] CVS: scummvm sound.cpp,1.114,1.115 config-file.cpp,1.12,1.13 config-file.h,1.5,1.6 gameDetector.cpp,1.78,1.79
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list