13
0

fix redisplay/reset of triggerbox ui as part of set_route()

This commit is contained in:
Paul Davis 2021-12-16 18:55:05 -07:00
parent de6178093e
commit 4c8559ecdf

View File

@ -953,6 +953,7 @@ void
TriggerBoxWidget::set_triggerbox (TriggerBox* tb)
{
if (ui) {
root()->remove (ui);
delete ui;
ui = 0;
}
@ -962,6 +963,7 @@ TriggerBoxWidget::set_triggerbox (TriggerBox* tb)
}
ui = new TriggerBoxUI (root(), *tb);
repeat_size_allocation ();
if (is_mapped()) {
ui->start_updating ();