projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e3843
)
prevent state saving when disconnected from JACK
author
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 2 Feb 2007 16:09:04 +0000
(16:09 +0000)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 2 Feb 2007 16:09:04 +0000
(16:09 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1406
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/session_state.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/session_state.cc
b/libs/ardour/session_state.cc
index 3b66f65cecfd428a0c37a99fe0f8145eb2bd21be..42aac479a19bf8ddb2937f9d70adb2dd5b6fbef0 100644
(file)
--- a/
libs/ardour/session_state.cc
+++ b/
libs/ardour/session_state.cc
@@
-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()) {