From 0b622fdbed6862528783da970f17f0ec5b186aef Mon Sep 17 00:00:00 2001 From: WarmUpTill <19472752+WarmUpTill@users.noreply.github.com> Date: Tue, 21 Jan 2025 18:53:11 +0100 Subject: [PATCH] Fix crash when importing settings --- lib/general.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/general.cpp b/lib/general.cpp index fda88ef8..05c529d7 100644 --- a/lib/general.cpp +++ b/lib/general.cpp @@ -344,6 +344,10 @@ void AdvSceneSwitcher::on_importSettings_clicked() return; } + // We have to make sure to that no macro is currently being edited while + // the new settings are loaded + ui->macros->clearSelection(); + std::lock_guard lock(switcher->m); switcher->LoadSettings(obj); switcher->lastImportPath = path.toStdString();