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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Jun 6 21:04:09 CEST 2009


Revision: 41293
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41293&view=rev
Author:   thebluegr
Date:     2009-06-06 19:04:09 +0000 (Sat, 06 Jun 2009)

Log Message:
-----------
Fixed assertion when starting mass add and there are no games currently in the game list

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

Modified: scummvm/trunk/gui/launcher.cpp
===================================================================
--- scummvm/trunk/gui/launcher.cpp	2009-06-06 18:46:07 UTC (rev 41292)
+++ scummvm/trunk/gui/launcher.cpp	2009-06-06 19:04:09 UTC (rev 41293)
@@ -652,8 +652,10 @@
 		if (alert.runModal() == GUI::kMessageOK && _browser->runModal() > 0) {
 			MassAddDialog massAddDlg(_browser->getResult());
 
-			// Save current game position, so on cancel cursor will move back
-			ConfMan.set("temp_selection", _domains[_list->getSelected()], ConfigManager::kApplicationDomain);
+			if (_list->getList().size() > 0) {
+				// Save current game position, so on cancel cursor will move back
+				ConfMan.set("temp_selection", _domains[_list->getSelected()], ConfigManager::kApplicationDomain);
+			}
 
 			massAddDlg.runModal();
 


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