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.

svn-id: r22426
This commit is contained in:
Torbjörn Andersson 2006-05-13 06:08:39 +00:00
parent a5b4fb7f18
commit d6e39db09d

View File

@ -160,7 +160,7 @@ void BrowserDialog::open() {
if (ConfMan.hasKey("browser_lastpath"))
_node = FilesystemNode(ConfMan.get("browser_lastpath"));
if (!_node.isDirectory())
_node = FilesystemNode();
_node = FilesystemNode(".");
// Alway refresh file list
updateListing();