13
0

fix botched-up, half-done code in last commit

git-svn-id: svn://localhost/ardour2/trunk@1201 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2006-12-11 13:22:09 +00:00
parent ee0fb82da6
commit d9490f619a

View File

@ -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;