summaryrefslogtreecommitdiff
path: root/gtk2_ardour/vst_pluginui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/vst_pluginui.cc')
-rw-r--r--gtk2_ardour/vst_pluginui.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/vst_pluginui.cc b/gtk2_ardour/vst_pluginui.cc
index aed9fb7337..19a0826065 100644
--- a/gtk2_ardour/vst_pluginui.cc
+++ b/gtk2_ardour/vst_pluginui.cc
@@ -167,7 +167,12 @@ VSTPluginUI::create_preset_store ()
CellRenderer* renderer = manage (new CellRendererText());
vst_preset_combo.pack_start (*renderer, true);
vst_preset_combo.add_attribute (*renderer, "text", 0);
- vst_preset_combo.set_active (0);
+
+ if (vst->fst()->current_program != -1) {
+ vst_preset_combo.set_active (vst->fst()->current_program);
+ } else {
+ vst_preset_combo.set_active (0);
+ }
}
typedef int (*error_handler_t)( Display *, XErrorEvent *);