diff options
author | Carl Hetherington <carl@carlh.net> | 2011-10-17 18:24:00 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-10-17 18:24:00 +0000 |
commit | 6fc823aca88dfe2e1dee1ceab81edf1a674640af (patch) | |
tree | 18c3f424e710dd91da0d4f47902e0c04c4af2de3 /gtk2_ardour | |
parent | 5f2690ac65487d3ac3c61ca1608889ad9c06b979 (diff) |
Set up LXVST preset combo after starting the editor up, as
the current_program seems only to be updated after the
editor starts in some cases (#4362).
git-svn-id: svn://localhost/ardour2/branches/3.0@10211 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rwxr-xr-x | gtk2_ardour/lxvst_pluginui.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/lxvst_pluginui.cc b/gtk2_ardour/lxvst_pluginui.cc index dc62d907ae..ec8a27a25d 100755 --- a/gtk2_ardour/lxvst_pluginui.cc +++ b/gtk2_ardour/lxvst_pluginui.cc @@ -47,6 +47,12 @@ LXVSTPluginUI::LXVSTPluginUI (boost::shared_ptr<PluginInsert> pi, boost::shared_ vstfx_run_editor (lxvst->vstfx()); + if (lxvst->vstfx()->current_program != -1) { + lxvst_preset_combo.set_active (lxvst->vstfx()->current_program); + } else { + lxvst_preset_combo.set_active (0); + } + preset_box.set_spacing (6); preset_box.set_border_width (6); preset_box.pack_end (bypass_button, false, false, 10); @@ -245,12 +251,6 @@ LXVSTPluginUI::create_preset_store () CellRenderer* renderer = manage (new CellRendererText()); lxvst_preset_combo.pack_start (*renderer, true); lxvst_preset_combo.add_attribute (*renderer, "text", 0); - - if (lxvst->vstfx()->current_program != -1) { - lxvst_preset_combo.set_active (lxvst->vstfx()->current_program); - } else { - lxvst_preset_combo.set_active (0); - } } typedef int (*error_handler_t)( Display *, XErrorEvent *); |