do not allow undo/redo while actively recording
This commit is contained in:
parent
214dfccdae
commit
41cc35cf6e
|
@ -874,13 +874,11 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
|
|||
/** Undo some transactions.
|
||||
* @param n Number of transactions to undo.
|
||||
*/
|
||||
void undo (uint32_t n) {
|
||||
_history.undo (n);
|
||||
}
|
||||
|
||||
void redo (uint32_t n) {
|
||||
_history.redo (n);
|
||||
}
|
||||
void undo (uint32_t n);
|
||||
/** Redo some transactions.
|
||||
* @param n Number of transactions to undo.
|
||||
*/
|
||||
void redo (uint32_t n);
|
||||
|
||||
UndoHistory& history() { return _history; }
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user