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:
parent
d23798276a
commit
e73d20c5a4
@ -2211,10 +2211,6 @@ ARDOUR_UI::save_template_dialog_response (int response, SaveTemplateDialog* d)
|
|||||||
void
|
void
|
||||||
ARDOUR_UI::save_template ()
|
ARDOUR_UI::save_template ()
|
||||||
{
|
{
|
||||||
if (!check_audioengine (_main_window)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const std::string desc = SessionMetadata::Metadata()->description ();
|
const std::string desc = SessionMetadata::Metadata()->description ();
|
||||||
SaveTemplateDialog* d = new SaveTemplateDialog (_session->name (), desc);
|
SaveTemplateDialog* d = new SaveTemplateDialog (_session->name (), desc);
|
||||||
d->signal_response().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::save_template_dialog_response), d));
|
d->signal_response().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::save_template_dialog_response), d));
|
||||||
|
@ -151,7 +151,7 @@ ARDOUR_UI::check_audioengine (Gtk::Window& parent)
|
|||||||
if (!AudioEngine::instance()->running()) {
|
if (!AudioEngine::instance()->running()) {
|
||||||
ArdourMessageDialog msg (parent, string_compose (
|
ArdourMessageDialog msg (parent, string_compose (
|
||||||
_("%1 is not connected to any audio backend.\n"
|
_("%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));
|
PROGRAM_NAME));
|
||||||
msg.run ();
|
msg.run ();
|
||||||
return false;
|
return false;
|
||||||
|
@ -295,10 +295,6 @@ ARDOUR_UI::session_dialog_response_handler (int response, SessionDialog* session
|
|||||||
void
|
void
|
||||||
ARDOUR_UI::close_session()
|
ARDOUR_UI::close_session()
|
||||||
{
|
{
|
||||||
if (!check_audioengine (_main_window)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (unload_session (true)) {
|
if (unload_session (true)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user