aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/browser.cpp6
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