aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-05-13 06:08:39 +0000
committerTorbjörn Andersson2006-05-13 06:08:39 +0000
commitd6e39db09db28a4b074c59e282eb2a904ea7c5e8 (patch)
tree7b928e8830b735a523447b21c9f20d54bad3cbff /gui
parenta5b4fb7f181886ef63bc7982409a7505894ad64d (diff)
downloadscummvm-rg350-d6e39db09db28a4b074c59e282eb2a904ea7c5e8.tar.gz
scummvm-rg350-d6e39db09db28a4b074c59e282eb2a904ea7c5e8.tar.bz2
scummvm-rg350-d6e39db09db28a4b074c59e282eb2a904ea7c5e8.zip
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
Diffstat (limited to 'gui')
-rw-r--r--gui/browser.cpp2
1 files changed, 1 insertions, 1 deletions
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();