do not allow undo/redo while actively recording
[ardour.git] / libs / ardour / session_state.cc
index 76cf2d375599dfda5a8b2bddcfe9ab6a155b5370..41d6d519795efbe04fc39d17e211dc7d52372754 100644 (file)
@@ -4916,3 +4916,23 @@ Session::save_as (SaveAs& saveas)
 
        return 0;
 }
+
+void
+Session::undo (uint32_t n)
+{
+       if (actively_recording()) {
+               return;
+       }
+
+       _history.undo (n);
+}
+
+void
+Session::redo (uint32_t n)
+{
+       if (actively_recording()) {
+               return;
+       }
+
+       _history.redo (n);
+}