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:
Paul Davis 2010-05-08 16:47:57 +00:00
parent 8d0581a720
commit 78b8eaf565
2 changed files with 5 additions and 4 deletions

View File

@ -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 ();
}

View File

@ -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());
}
}
}
}
}
}