[Scummvm-cvs-logs] SF.net SVN: scummvm: [24707] scummvm/trunk/gui/launcher.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Mon Nov 13 17:29:50 CET 2006


Revision: 24707
          http://svn.sourceforge.net/scummvm/?rev=24707&view=rev
Author:   sev
Date:     2006-11-13 08:29:14 -0800 (Mon, 13 Nov 2006)

Log Message:
-----------
Patch #1595705: "Select last game when removing the last game of the list"

Modified Paths:
--------------
    scummvm/trunk/gui/launcher.cpp

Modified: scummvm/trunk/gui/launcher.cpp
===================================================================
--- scummvm/trunk/gui/launcher.cpp	2006-11-13 13:53:14 UTC (rev 24706)
+++ scummvm/trunk/gui/launcher.cpp	2006-11-13 16:29:14 UTC (rev 24707)
@@ -592,6 +592,9 @@
 	_list->setList(l);
 	if (oldSel < (int)l.size())
 		_list->setSelected(oldSel);	// Restore the old selection
+	else if (oldSel != -1)
+		// Select the last entry if the list has been reduced
+		_list->setSelected(_list->getList().size() - 1);
 	updateButtons();
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list