From 83313e737d3137f7939f3daa9063a94a1ac01f7c Mon Sep 17 00:00:00 2001 From: Kevin Zander Date: Thu, 12 Mar 2026 13:03:09 -0500 Subject: [PATCH] Remove GUI menu items for global automation (#5230) Co-authored-by: Hyunjin Song Co-authored-by: Fawn --- include/AutomatableModelView.h | 2 -- src/gui/AutomatableModelView.cpp | 27 --------------------------- 2 files changed, 29 deletions(-) diff --git a/include/AutomatableModelView.h b/include/AutomatableModelView.h index 2d4a88ac0..264aa2155 100644 --- a/include/AutomatableModelView.h +++ b/include/AutomatableModelView.h @@ -97,8 +97,6 @@ public: public slots: void execConnectionDialog(); void removeConnection(); - void editSongGlobalAutomation(); - void removeSongGlobalAutomation(); private slots: /// Copy the model's value to the clipboard. diff --git a/src/gui/AutomatableModelView.cpp b/src/gui/AutomatableModelView.cpp index c6b46c223..f6a84a0b0 100644 --- a/src/gui/AutomatableModelView.cpp +++ b/src/gui/AutomatableModelView.cpp @@ -84,18 +84,6 @@ void AutomatableModelView::addDefaultActions( QMenu* menu ) menu->addSeparator(); - menu->addAction( embed::getIconPixmap( "automation" ), - AutomatableModel::tr( "Edit song-global automation" ), - amvSlots, - SLOT(editSongGlobalAutomation())); - - menu->addAction( QPixmap(), - AutomatableModel::tr( "Remove song-global automation" ), - amvSlots, - SLOT(removeSongGlobalAutomation())); - - menu->addSeparator(); - if (model->isLinked()) { menu->addAction(embed::getIconPixmap("edit_unlink"), @@ -261,21 +249,6 @@ void AutomatableModelViewSlots::removeConnection() -void AutomatableModelViewSlots::editSongGlobalAutomation() -{ - getGUI()->automationEditor()->open( - AutomationClip::globalAutomationClip(m_amv->modelUntyped()) - ); -} - - - -void AutomatableModelViewSlots::removeSongGlobalAutomation() -{ - delete AutomationClip::globalAutomationClip( m_amv->modelUntyped() ); -} - - void AutomatableModelViewSlots::copyToClipboard() { // For copyString() and MimeType enum class