From 41cc35cf6e279c4bf99b1c326a6fdc0c53fce495 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 17 Aug 2016 19:21:45 -0400 Subject: do not allow undo/redo while actively recording --- libs/ardour/session_state.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'libs/ardour/session_state.cc') diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 76cf2d3755..41d6d51979 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -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); +} -- cgit v1.2.3