Use URIs to identify plugin-presets
[ardour.git] / libs / ardour / session_state.cc
index e21967cf14134f530ce88e584e04d6ae47260e64..ebb2b99cc1406eb8bebe068e6b041feef0eea170 100644 (file)
@@ -3974,7 +3974,6 @@ Session::restore_history (string snapshot_name)
        for (XMLNodeConstIterator it  = tree.root()->children().begin(); it != tree.root()->children().end(); ++it) {
 
                XMLNode *t = *it;
-               UndoTransaction* ut = new UndoTransaction ();
 
                std::string name;
                int64_t tv_sec;
@@ -3985,6 +3984,7 @@ Session::restore_history (string snapshot_name)
                        continue;
                }
 
+               UndoTransaction* ut = new UndoTransaction ();
                ut->set_name (name);
 
                struct timeval tv;
@@ -4060,11 +4060,7 @@ Session::config_changed (std::string p, bool ours)
                set_dirty ();
        }
 
-       if (p == "seamless-loop") {
-
-       } else if (p == "rf-speed") {
-
-       } else if (p == "auto-loop") {
+       if (p == "auto-loop") {
 
        } else if (p == "session-monitoring") {