summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/session_state.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index e97d2b6831..95449d6c1a 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -2796,13 +2796,8 @@ Session::save_history (string snapshot_name)
XMLTree tree;
string xml_path;
string bak_path;
- XMLNode& history_node (history.get_state (Config->get_saved_history_depth()));
- if (history_node.children().empty()) {
- return 0;
- }
-
- tree.set_root (
+ tree.set_root (&_history.get_state (Config->get_saved_history_depth()));
if (snapshot_name.empty()) {
snapshot_name = _current_snapshot_name;