diff options
author | Torbjörn Andersson | 2006-05-13 06:08:39 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-13 06:08:39 +0000 |
commit | d6e39db09db28a4b074c59e282eb2a904ea7c5e8 (patch) | |
tree | 7b928e8830b735a523447b21c9f20d54bad3cbff /gui | |
parent | a5b4fb7f181886ef63bc7982409a7505894ad64d (diff) | |
download | scummvm-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.cpp | 2 |
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(); |