mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
Fix crash when adding new macro to group
This commit is contained in:
@@ -123,7 +123,9 @@ void AdvSceneSwitcher::on_macroAdd_clicked()
|
||||
}
|
||||
|
||||
if (selectedMacro->IsGroup()) {
|
||||
ui->macros->Add(newMacro, selectedMacro);
|
||||
ui->macros->ExpandGroup(selectedMacro);
|
||||
Macro::PrepareMoveToGroup(selectedMacro, newMacro);
|
||||
ui->macros->AddToGroup(newMacro, selectedMacro);
|
||||
emit MacroAdded(QString::fromStdString(name));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user