mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-15 22:04:17 -05:00
Fix potential crashes when removing macros
This commit is contained in:
@@ -106,7 +106,7 @@ void AdvSceneSwitcher::on_macroRemove_clicked()
|
||||
std::lock_guard<std::mutex> lock(switcher->m);
|
||||
switcher->abortMacroWait = true;
|
||||
switcher->macroWaitCv.notify_all();
|
||||
QString::fromStdString(switcher->macros[idx]->Name());
|
||||
name = QString::fromStdString(switcher->macros[idx]->Name());
|
||||
switcher->macros.erase(switcher->macros.begin() + idx);
|
||||
for (auto &m : switcher->macros) {
|
||||
m->ResolveMacroRef();
|
||||
|
||||
Reference in New Issue
Block a user