From 9f7b98617db5720c7ce4894ce6ab835cbf78d5ae Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 3 May 2006 20:51:06 +0000 Subject: Fix listDir call in BrowserDialog svn-id: r22318 --- gui/browser.cpp | 6 ++---- 1 file 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 -- cgit v1.2.3