Checking if the node isValid() is no longer an option, but isDirectory() should

serve the same purpose, I believe.

svn-id: r22324
This commit is contained in:
Torbjörn Andersson 2006-05-04 03:44:50 +00:00
parent f37cfaa766
commit 24a46d5da8

View file

@ -159,7 +159,7 @@ BrowserDialog::BrowserDialog(const char *title, bool dirBrowser)
void BrowserDialog::open() {
if (ConfMan.hasKey("browser_lastpath"))
_node = FilesystemNode(ConfMan.get("browser_lastpath"));
if (!_node.isValid())
if (!_node.isDirectory())
_node = FilesystemNode();
// Alway refresh file list