diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-18 11:42:49 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-18 11:42:49 -0400 |
commit | 1847053f66c8b279186933e880cbbdbdf1316d5b (patch) | |
tree | d52b9270cc00930bb43508a96f6bc97a74d64729 /libs | |
parent | 23d1e370a0bf036591ac0fb4d873f134d5eea5ad (diff) |
return the full MIDI map search path from system_midi_map_search_path(), to fix #5379
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/generic_midi/generic_midi_control_protocol.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libs/surfaces/generic_midi/generic_midi_control_protocol.cc b/libs/surfaces/generic_midi/generic_midi_control_protocol.cc index a8ca0c7221..92ca06b2cf 100644 --- a/libs/surfaces/generic_midi/generic_midi_control_protocol.cc +++ b/libs/surfaces/generic_midi/generic_midi_control_protocol.cc @@ -118,14 +118,7 @@ system_midi_map_search_path () SearchPath spath (ardour_data_search_path()); spath.add_subdirectory_to_paths(midi_map_dir_name); - - // just return the first directory in the search path that exists - for (SearchPath::const_iterator i = spath.begin(); i != spath.end(); ++i) { - if (Glib::file_test (*i, Glib::FILE_TEST_EXISTS)) { - return *i; - } - } - return std::string(); + return spath; } static std::string |