NSM startup needs to call a different method due to API changes
This commit is contained in:
parent
e1b319a138
commit
7f4e9fe211
@ -17,15 +17,15 @@
|
|||||||
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
/* 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 "nsm.h"
|
||||||
#include "opts.h"
|
#include "opts.h"
|
||||||
#include "ardour_ui.h"
|
#include "ardour_ui.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
|
|
||||||
NSM_Client::NSM_Client()
|
NSM_Client::NSM_Client()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -49,11 +49,13 @@ NSM_Client::command_open(const char* name,
|
|||||||
{
|
{
|
||||||
int r = ERR_OK;
|
int r = ERR_OK;
|
||||||
|
|
||||||
ARDOUR_COMMAND_LINE::session_name = name;
|
|
||||||
ARDOUR_COMMAND_LINE::backend_client_name = client_id;
|
ARDOUR_COMMAND_LINE::backend_client_name = client_id;
|
||||||
|
|
||||||
if (ARDOUR_UI::instance()->get_session_parameters(true, false, "")) {
|
/* this appears asynchronous, but almost certainly is
|
||||||
return ERR_GENERAL;
|
synchronous. However, there's no return value available.
|
||||||
}
|
*/
|
||||||
|
|
||||||
|
Gtkmm2ext::Application::instance()->ShouldLoad (name);
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user