From d6e39db09db28a4b074c59e282eb2a904ea7c5e8 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 13 May 2006 06:08:39 +0000 Subject: 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 --- gui/browser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/browser.cpp b/gui/browser.cpp index c1c3d4b08e..c3c590f187 100644 --- a/gui/browser.cpp +++ b/gui/browser.cpp @@ -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(); -- cgit v1.2.3