diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-03-27 18:38:02 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-03-27 18:38:02 +0000 |
commit | 75119176e300f559e1a080b5127b85dff4947d36 (patch) | |
tree | 848e8dd29cf07f664314a21d82a87525d505649f /gtk2_ardour | |
parent | 95114e89ad81e83f56fa5449bc8ead2f7f45eca1 (diff) |
some totally untested FST/VST changes
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4916 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/vst_pluginui.cc | 7 |
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 *); |