mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix crash when importing settings
This commit is contained in:
parent
3bce8e075f
commit
0b622fdbed
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user