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

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Fri May 12 23:24:20 CEST 2006


Revision: 22426
Author:   eriktorbjorn
Date:     2006-05-12 23:08:39 -0700 (Fri, 12 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22426&view=rev

Log Message:
-----------
If there is no "browser_lastpath" setting, create a FilesystemNode to "."
instead of a completely blank one. This should fix the failed assertion when
trying to add a new game that was reported on the forum.

Modified Paths:
--------------
    scummvm/trunk/gui/browser.cpp
Modified: scummvm/trunk/gui/browser.cpp
===================================================================
--- scummvm/trunk/gui/browser.cpp	2006-05-12 23:57:53 UTC (rev 22425)
+++ scummvm/trunk/gui/browser.cpp	2006-05-13 06:08:39 UTC (rev 22426)
@@ -160,7 +160,7 @@
 	if (ConfMan.hasKey("browser_lastpath"))
 		_node = FilesystemNode(ConfMan.get("browser_lastpath"));
 	if (!_node.isDirectory())
-		_node = FilesystemNode();
+		_node = FilesystemNode(".");
 
 	// Alway refresh file list
 	updateListing();


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