diff options
author | Max Horn | 2006-05-03 20:51:06 +0000 |
---|---|---|
committer | Max Horn | 2006-05-03 20:51:06 +0000 |
commit | 9f7b98617db5720c7ce4894ce6ab835cbf78d5ae (patch) | |
tree | 92770d76bc58cdc49f22a15818d5826e749354f1 | |
parent | 05f6adbbd90f58346a0bca85793069c387c54b67 (diff) | |
download | scummvm-rg350-9f7b98617db5720c7ce4894ce6ab835cbf78d5ae.tar.gz scummvm-rg350-9f7b98617db5720c7ce4894ce6ab835cbf78d5ae.tar.bz2 scummvm-rg350-9f7b98617db5720c7ce4894ce6ab835cbf78d5ae.zip |
Fix listDir call in BrowserDialog
svn-id: r22318
-rw-r--r-- | gui/browser.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gui/browser.cpp b/gui/browser.cpp index 196ac9dbd0..670db992b3 100644 --- a/gui/browser.cpp +++ b/gui/browser.cpp @@ -225,10 +225,8 @@ void BrowserDialog::updateListing() { ConfMan.set("browser_lastpath", _node.path()); // Read in the data from the file system - if (_isDirBrowser) - _nodeContent = _node.listDir(FilesystemNode::kListDirectoriesOnly); - else - _nodeContent = _node.listDir(FilesystemNode::kListAll); + _node.listDir(_nodeContent, _isDirBrowser ? FilesystemNode::kListDirectoriesOnly + : FilesystemNode::kListAll); Common::sort(_nodeContent.begin(), _nodeContent.end()); // Populate the ListWidget |