From d005e8866bc0799b54341c9b527b0c08d87b3b0a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 23 Jan 2014 00:22:02 +0100 Subject: midi-audition: make "no synth" selection work. --- libs/ardour/auditioner.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libs/ardour/auditioner.cc') diff --git a/libs/ardour/auditioner.cc b/libs/ardour/auditioner.cc index 3e382625a0..d682dc3617 100644 --- a/libs/ardour/auditioner.cc +++ b/libs/ardour/auditioner.cc @@ -85,8 +85,9 @@ void Auditioner::lookup_synth () { string plugin_id = Config->get_midi_audition_synth_uri(); - boost::shared_ptr p; + asynth = boost::shared_ptr(); if (!plugin_id.empty()) { + boost::shared_ptr p; p = find_plugin (_session, plugin_id, ARDOUR::LV2); if (!p) { p = find_plugin (_session, "https://community.ardour.org/node/7596", ARDOUR::LV2); @@ -96,9 +97,9 @@ Auditioner::lookup_synth () warning << _("No synth for midi-audition found.") << endmsg; } } - } - if (p) { - asynth = boost::shared_ptr (new PluginInsert (_session, p)); + if (p) { + asynth = boost::shared_ptr (new PluginInsert (_session, p)); + } } } -- cgit v1.2.3