[Scummvm-cvs-logs] CVS: scummvm/gui launcher.cpp,1.103,1.104

Max Horn fingolfin at users.sourceforge.net
Sat Dec 25 14:27:01 CET 2004


Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14097

Modified Files:
	launcher.cpp 
Log Message:
Partial fix for bug #1091189: restore the selection after editing the games list in the launcher

Index: launcher.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/launcher.cpp,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- launcher.cpp	25 Dec 2004 22:13:43 -0000	1.103
+++ launcher.cpp	25 Dec 2004 22:26:28 -0000	1.104
@@ -487,7 +487,10 @@
 		}
 	}
 
+	const int oldSel = _list->getSelected();
 	_list->setList(l);
+	if (oldSel < l.size())
+		_list->setSelected(oldSel);	// Restore the old selection
 	updateButtons();
 }
 





More information about the Scummvm-git-logs mailing list