diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-10-09 20:53:03 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-10-10 16:52:00 -0600 |
commit | 7f4e9fe211c1ec837b8159eeaa691b593784ab6c (patch) | |
tree | f91ffc83219a576691336d95044adc1a7394201f /gtk2_ardour/nsm.cc | |
parent | e1b319a13837e80ac9193f4a02f67fcfc7655f15 (diff) |
NSM startup needs to call a different method due to API changes
Diffstat (limited to 'gtk2_ardour/nsm.cc')
-rw-r--r-- | gtk2_ardour/nsm.cc | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gtk2_ardour/nsm.cc b/gtk2_ardour/nsm.cc index acbc7529d0..1f2aa5a5da 100644 --- a/gtk2_ardour/nsm.cc +++ b/gtk2_ardour/nsm.cc @@ -17,15 +17,15 @@ /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*******************************************************************************/ +#include <stdio.h> +#include <unistd.h> + +#include "gtkmm2ext/application.h" #include "nsm.h" #include "opts.h" #include "ardour_ui.h" -#include <stdio.h> -#include <unistd.h> - - NSM_Client::NSM_Client() { } @@ -49,11 +49,13 @@ NSM_Client::command_open(const char* name, { int r = ERR_OK; - ARDOUR_COMMAND_LINE::session_name = name; ARDOUR_COMMAND_LINE::backend_client_name = client_id; - if (ARDOUR_UI::instance()->get_session_parameters(true, false, "")) { - return ERR_GENERAL; - } + /* this appears asynchronous, but almost certainly is + synchronous. However, there's no return value available. + */ + + Gtkmm2ext::Application::instance()->ShouldLoad (name); + return r; } |