From 24f4b864c414de701d27d3c8100aa7543b77a732 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Mon, 11 Sep 2023 21:36:20 +0200 Subject: [PATCH] Fix macro splitter position not saving when switching to empty selection --- src/macro-core/macro-tab.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/macro-core/macro-tab.cpp b/src/macro-core/macro-tab.cpp index 06748466..3f6e8d46 100644 --- a/src/macro-core/macro-tab.cpp +++ b/src/macro-core/macro-tab.cpp @@ -676,6 +676,10 @@ void AdvSceneSwitcher::MacroSelectionAboutToChange() return; } + if (!ui->macroName->isEnabled()) { // No macro is selected + return; + } + auto macro = GetMacroByQString(ui->macroName->text()); if (!macro) { return;