diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2014-06-19 12:33:14 +1000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-25 12:40:09 -0400 |
commit | 769ee5c1f278c2de08a48a568738d9ac8d2f7c16 (patch) | |
tree | d095920fd3fec99468b8c1d9cb5a539c72140a1a /gtk2_ardour/utils.cc | |
parent | d1dd5d3ee766791b60b8a60fc46e5086b4ffee90 (diff) |
Change PBD::get_files_in_directory to return full paths in result
get_files_in_directory uses get_directory_contents internally now
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r-- | gtk2_ardour/utils.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index 82397a325d..c3d02dee2f 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -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))); } } } |