mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-13 04:37:14 -05:00
Fix macro refs pointing to wrong entry when reordering
This commit is contained in:
@@ -105,6 +105,10 @@ void AdvSceneSwitcher::on_macroUp_clicked()
|
||||
|
||||
iter_swap(switcher->macros.begin() + index,
|
||||
switcher->macros.begin() + index - 1);
|
||||
|
||||
for (auto &m : switcher->macros) {
|
||||
m.ResolveMacroRef();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,6 +122,10 @@ void AdvSceneSwitcher::on_macroDown_clicked()
|
||||
|
||||
iter_swap(switcher->macros.begin() + index,
|
||||
switcher->macros.begin() + index + 1);
|
||||
|
||||
for (auto &m : switcher->macros) {
|
||||
m.ResolveMacroRef();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user