From 8beca6fcc75adae4b0c2ac5b37f699443a7a0078 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Thu, 23 Mar 2023 18:53:36 +0100 Subject: [PATCH] Do not allow duplication of groups Functionality has to be implemented first. Otherwise visual issues might occur when expanding or collapsing the new copy of the group entry. --- src/macro-core/macro-tab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/macro-core/macro-tab.cpp b/src/macro-core/macro-tab.cpp index c4608e10..bb01deab 100644 --- a/src/macro-core/macro-tab.cpp +++ b/src/macro-core/macro-tab.cpp @@ -520,7 +520,8 @@ void AdvSceneSwitcher::ShowMacroContextMenu(const QPoint &pos) auto copy = menu.addAction( obs_module_text("AdvSceneSwitcher.macroTab.copy"), this, &AdvSceneSwitcher::CopyMacro); - copy->setEnabled(ui->macros->SingleItemSelected()); + copy->setEnabled(ui->macros->SingleItemSelected() && + !ui->macros->GroupsSelected()); menu.addSeparator(); auto group = menu.addAction(