mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-30 05:06:14 -05:00
Fix crash when deleting macro with wait action
Note that this might still not be completely race free but should improve the situation a lot.
This commit is contained in:
@@ -80,6 +80,8 @@ void AdvSceneSwitcher::on_macroRemove_clicked()
|
||||
QString name;
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(switcher->m);
|
||||
switcher->abortMacroWait = true;
|
||||
switcher->macroWaitCv.notify_one();
|
||||
int idx = ui->macros->currentRow();
|
||||
QString::fromStdString(switcher->macros[idx].Name());
|
||||
switcher->macros.erase(switcher->macros.begin() + idx);
|
||||
|
||||
Reference in New Issue
Block a user