13
0

prevent state saving when disconnected from JACK

git-svn-id: svn://localhost/ardour2/trunk@1406 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-02-02 16:09:04 +00:00
parent 56e384349b
commit 7f750fe77f

View File

@ -589,6 +589,12 @@ Session::save_state (string snapshot_name, bool pending)
return 1;
}
if (!_engine.connected ()) {
error << _("Ardour's audio engine is not connected and state saving would lose all I/O connections. Session not saved")
<< endmsg;
return 1;
}
tree.set_root (&get_state());
if (snapshot_name.empty()) {