projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
do not allow undo/redo while actively recording
[ardour.git]
/
libs
/
ardour
/
session_state.cc
diff --git
a/libs/ardour/session_state.cc
b/libs/ardour/session_state.cc
index 76cf2d375599dfda5a8b2bddcfe9ab6a155b5370..41d6d519795efbe04fc39d17e211dc7d52372754 100644
(file)
--- 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);
+}