From b240423e503c65a46a0a2a1b8aef082eb451bd7d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 16 Aug 2023 09:04:22 -0600 Subject: [PATCH] session: add API to get access to the current reversible command (if any) --- libs/ardour/ardour/session.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 8eaf7672e4..f3c9520826 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1121,6 +1121,8 @@ public: return _current_trans && !_current_trans->empty (); } + PBD::UndoTransaction* current_reversible_command() { return _current_trans; } + /** * Abort reversible command IFF no undo changes * have been collected.