diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-05 17:34:41 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-05 17:34:41 -0700 |
commit | 86045fe5268811233b7267a46a88179b1c56c8b7 (patch) | |
tree | dd16880a9963593bdb2bbd0241088521ce8f65ce /gtk2_ardour/startup_fsm.cc | |
parent | f04974aa6cb93de18be6a48c40e8ce15d738aaf6 (diff) |
move more or less all responsibility for ShouldLoad (macOS, NSM) back into ARDOUR_UI
Diffstat (limited to 'gtk2_ardour/startup_fsm.cc')
-rw-r--r-- | gtk2_ardour/startup_fsm.cc | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/gtk2_ardour/startup_fsm.cc b/gtk2_ardour/startup_fsm.cc index d7a41c102a..5a22c79ed9 100644 --- a/gtk2_ardour/startup_fsm.cc +++ b/gtk2_ardour/startup_fsm.cc @@ -95,7 +95,6 @@ StartupFSM::StartupFSM (EngineControl& amd) Application* app = Application::instance (); app->ShouldQuit.connect (sigc::mem_fun (*this, &StartupFSM::queue_finish)); - app->ShouldLoad.connect (sigc::mem_fun (*this, &StartupFSM::load_from_application_api)); Gtkmm2ext::Keyboard::HideMightMeanQuit.connect (sigc::mem_fun (*this, &StartupFSM::dialog_hidden)); } @@ -567,6 +566,7 @@ StartupFSM::get_session_parameters_from_path (string const & path, string const session_path = path; } + session_template = string (); if (!template_name.empty()) { @@ -829,22 +829,6 @@ StartupFSM::copy_demo_sessions () } } -void -StartupFSM::load_from_application_api (const std::string& path) -{ - if (!ARDOUR_COMMAND_LINE::session_name.empty()) { - return; - } - - /* just set this as if it was given on the command line, rather than - * supplied via some desktop system (e.g. macOS application delegate - * and "openFile". Note that this relies on this being invoked before - * StartupFSM::start(). - */ - - ARDOUR_COMMAND_LINE::session_name = path; -} - bool StartupFSM::ask_about_loading_existing_session (const std::string& session_path) { |