mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
Change PBD::get_files_in_directory to return full paths in result
get_files_in_directory uses get_directory_contents internally now
This commit is contained in:
parent
1e442feb53
commit
4ffa970135
2 changed files with 7 additions and 24 deletions
|
|
@ -696,13 +696,8 @@ get_icon_sets ()
|
|||
get_files_in_directory (*s, entries);
|
||||
|
||||
for (vector<string>::iterator e = entries.begin(); e != entries.end(); ++e) {
|
||||
|
||||
string d = *e;
|
||||
|
||||
Glib::ustring path = Glib::build_filename (*s, *e);
|
||||
|
||||
if (Glib::file_test (path, Glib::FILE_TEST_IS_DIR)) {
|
||||
r.push_back (Glib::filename_to_utf8 (*e));
|
||||
if (Glib::file_test (*e, Glib::FILE_TEST_IS_DIR)) {
|
||||
r.push_back (Glib::filename_to_utf8 (Glib::path_get_basename(*e)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue