save global state when quitting BEFORE we stop the engine, so that global MIDI ports are still connected and thus will re-establish their connections on session reload
git-svn-id: svn://localhost/ardour2/branches/3.0@7082 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8d0581a720
commit
78b8eaf565
|
@ -769,10 +769,11 @@ If you still wish to quit, please use the\n\n\
|
|||
_session = 0;
|
||||
}
|
||||
|
||||
ArdourDialog::close_all_dialogs ();
|
||||
engine->stop (true);
|
||||
cerr << "Save before quit\n";
|
||||
save_ardour_state ();
|
||||
|
||||
ArdourDialog::close_all_dialogs ();
|
||||
engine->stop (true);
|
||||
quit ();
|
||||
}
|
||||
|
||||
|
|
|
@ -869,12 +869,12 @@ IO::make_connections (const XMLNode& node, int version, bool in)
|
|||
if ((prop = cnode->property (X_("other"))) == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (prop) {
|
||||
p->connect (prop->value());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user