13
0

NSM startup needs to call a different method due to API changes

This commit is contained in:
Paul Davis 2019-10-09 20:53:03 -06:00
parent e1b319a138
commit 7f4e9fe211

View File

@ -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;
}