Use iterator API to iterate over all entries in the file list
svn-id: r21601
This commit is contained in:
parent
ac9203415e
commit
77555809b6
1 changed files with 4 additions and 5 deletions
|
@ -229,12 +229,11 @@ void BrowserDialog::updateListing() {
|
||||||
|
|
||||||
// Populate the ListWidget
|
// Populate the ListWidget
|
||||||
Common::StringList list;
|
Common::StringList list;
|
||||||
int size = _nodeContent.size();
|
for (FSList::iterator i = _nodeContent.begin(); i != _nodeContent.end(); ++i) {
|
||||||
for (int i = 0; i < size; i++) {
|
if (!_isDirBrowser && i->isDirectory())
|
||||||
if (!_isDirBrowser && _nodeContent[i].isDirectory())
|
list.push_back(i->displayName() + "/");
|
||||||
list.push_back(_nodeContent[i].displayName() + "/");
|
|
||||||
else
|
else
|
||||||
list.push_back(_nodeContent[i].displayName());
|
list.push_back(i->displayName());
|
||||||
}
|
}
|
||||||
_fileList->setList(list);
|
_fileList->setList(list);
|
||||||
_fileList->scrollTo(0);
|
_fileList->scrollTo(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue