summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-12-11 13:22:09 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-12-11 13:22:09 +0000
commitd9490f619a00fe1193d1fb21cf836cc0ee9d9c17 (patch)
treee10acd4d55d65356d02edf0cd840011cf3b0bbdc /libs
parentee0fb82da6a0d511e2aa7e6071ea0fb05cb405e9 (diff)
fix botched-up, half-done code in last commit
git-svn-id: svn://localhost/ardour2/trunk@1201 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-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;