mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-22 01:57:31 -05:00
Fix macro refs pointing to wrong entry when reordering
This commit is contained in:
parent
8ef798c70c
commit
a86d6f1f76
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user