diff options
Diffstat (limited to 'plugingui/filebrowser.cc')
-rw-r--r-- | plugingui/filebrowser.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc index d1b6136..2bd1a10 100644 --- a/plugingui/filebrowser.cc +++ b/plugingui/filebrowser.cc @@ -127,10 +127,15 @@ static void changeDir(void *ptr) return; } - struct dirent *entry; + std::vector<GUI::ListBoxBasic::Item> items; + struct dirent *entry; while((entry = readdir(dir)) != NULL) { - lb->addItem(entry->d_name, entry->d_name); + GUI::ListBoxBasic::Item item; + item.name = entry->d_name; + item.value = entry->d_name; + items.push_back(item); } + lb->addItems(items); closedir(dir); } |