From 25310e49c3f39dfdfc5018003e75f62ecfe53bcc Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 14 Feb 2024 09:22:56 -0700 Subject: [PATCH] add metadata to session property editor so that search "works" there There's still relatively limited amounts of metadata available there --- gtk2_ardour/session_option_editor.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gtk2_ardour/session_option_editor.cc b/gtk2_ardour/session_option_editor.cc index 2bd1538e05..42dcb88398 100644 --- a/gtk2_ardour/session_option_editor.cc +++ b/gtk2_ardour/session_option_editor.cc @@ -20,6 +20,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "pbd/configuration.h" + #include "ardour/session.h" #include "ardour/transport_master_manager.h" @@ -445,6 +447,20 @@ SessionOptionEditor::SessionOptionEditor (Session* s) /* Place the search entry */ vpacker.pack_end (search_packer, false, false); + + /* Connect metadata */ + + for (auto p : pages()) { + for (auto oc : p.second->components) { + Option* o = dynamic_cast (oc); + if (o) { + PBD::Configuration::Metadata const * m = PBD::Configuration::get_metadata (o->id()); + if (m) { + oc->set_metadata (*m); + } + } + } + } } void