13
0

Close and save is possible without running engine

Since de99d7c528, Ardour sessions can be saved and
Ardour can be closed without a running engine.
This commit is contained in:
Robin Gareus 2021-01-27 04:12:53 +01:00
parent d23798276a
commit e73d20c5a4
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 1 additions and 9 deletions

View File

@ -2211,10 +2211,6 @@ ARDOUR_UI::save_template_dialog_response (int response, SaveTemplateDialog* d)
void
ARDOUR_UI::save_template ()
{
if (!check_audioengine (_main_window)) {
return;
}
const std::string desc = SessionMetadata::Metadata()->description ();
SaveTemplateDialog* d = new SaveTemplateDialog (_session->name (), desc);
d->signal_response().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::save_template_dialog_response), d));

View File

@ -151,7 +151,7 @@ ARDOUR_UI::check_audioengine (Gtk::Window& parent)
if (!AudioEngine::instance()->running()) {
ArdourMessageDialog msg (parent, string_compose (
_("%1 is not connected to any audio backend.\n"
"You cannot open or close sessions in this condition"),
"You cannot open sessions in this condition"),
PROGRAM_NAME));
msg.run ();
return false;

View File

@ -295,10 +295,6 @@ ARDOUR_UI::session_dialog_response_handler (int response, SessionDialog* session
void
ARDOUR_UI::close_session()
{
if (!check_audioengine (_main_window)) {
return;
}
if (unload_session (true)) {
return;
}