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:
parent
56e384349b
commit
7f750fe77f
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user