diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-08-17 19:21:45 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-08-17 19:22:26 -0400 |
commit | 41cc35cf6e279c4bf99b1c326a6fdc0c53fce495 (patch) | |
tree | ddc52bec2c9774d65139b58a0fbbffc0a65f4156 /libs/ardour/session_state.cc | |
parent | 214dfccdae9b67999d663b55023628aa736b256b (diff) |
do not allow undo/redo while actively recording
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 20 |
1 files changed, 20 insertions, 0 deletions
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); +} |