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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Jun 6 22:22:16 CEST 2009


Revision: 41301
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41301&view=rev
Author:   lordhoto
Date:     2009-06-06 20:22:16 +0000 (Sat, 06 Jun 2009)

Log Message:
-----------
Made fix for empty game list on starting MassAdd a bit more robust.

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

Modified: scummvm/trunk/gui/launcher.cpp
===================================================================
--- scummvm/trunk/gui/launcher.cpp	2009-06-06 20:05:21 UTC (rev 41300)
+++ scummvm/trunk/gui/launcher.cpp	2009-06-06 20:22:16 UTC (rev 41301)
@@ -651,7 +651,7 @@
 		if (alert.runModal() == GUI::kMessageOK && _browser->runModal() > 0) {
 			MassAddDialog massAddDlg(_browser->getResult());
 
-			if (_list->getList().size() > 0) {
+			if (_list->getSelected() != -1) {
 				// Save current game position, so on cancel cursor will move back
 				ConfMan.set("temp_selection", _domains[_list->getSelected()], ConfigManager::kApplicationDomain);
 			}


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