Utils: Remove empty item after option

Triggers a soft assert.

Change-Id: I9ad863ceb7e1f377e4f9fbae62cca1d0932a76d6
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2023-05-11 15:46:34 +02:00
parent d14f1af523
commit 1a86c7bed4

View File

@@ -1597,7 +1597,6 @@ void SelectionAspect::addToLayout(Layouting::LayoutItem &parent)
button->setChecked(i == value()); button->setChecked(i == value());
button->setEnabled(option.enabled); button->setEnabled(option.enabled);
button->setToolTip(option.tooltip); button->setToolTip(option.tooltip);
parent.addItem(Layouting::empty);
parent.addItem(button); parent.addItem(button);
d->m_buttons.append(button); d->m_buttons.append(button);
d->m_buttonGroup->addButton(button, i); d->m_buttonGroup->addButton(button, i);