13
0

use new API to query presets

This commit is contained in:
Robin Gareus 2016-01-07 17:10:47 +01:00
parent deb6884a53
commit 4bd4790d11

View File

@ -2318,9 +2318,7 @@ Mixer_UI::sync_treeview_from_favorite_order ()
continue; continue;
} }
PluginPtr plugin = (*i)->load (*_session); vector<ARDOUR::Plugin::PresetRecord> presets = (*i)->get_presets(*_session);
vector<ARDOUR::Plugin::PresetRecord> presets = plugin->get_presets();
for (vector<ARDOUR::Plugin::PresetRecord>::const_iterator j = presets.begin(); j != presets.end(); ++j) { for (vector<ARDOUR::Plugin::PresetRecord>::const_iterator j = presets.begin(); j != presets.end(); ++j) {
Gtk::TreeModel::Row child_row = *(favorite_plugins_model->append (newrow.children())); Gtk::TreeModel::Row child_row = *(favorite_plugins_model->append (newrow.children()));
child_row[favorite_plugins_columns.name] = (*j).label; child_row[favorite_plugins_columns.name] = (*j).label;