Fix crash when importing settings

This commit is contained in:
WarmUpTill 2025-01-21 18:53:11 +01:00 committed by WarmUpTill
parent 3bce8e075f
commit 0b622fdbed

View File

@ -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<std::mutex> lock(switcher->m);
switcher->LoadSettings(obj);
switcher->lastImportPath = path.toStdString();