forked from qt-creator/qt-creator
Utils: Fix incorrect checks
There is no reason to force m_buffer = m_internal afaik. Change-Id: I6cab375c9d416d4fbe167c4cfb884e7cc6025381 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1794,8 +1794,6 @@ LayoutItem BoolAspect::adoptButton(QAbstractButton *button)
|
||||
*/
|
||||
void BoolAspect::addToLayout(Layouting::LayoutItem &parent)
|
||||
{
|
||||
QTC_ASSERT(m_buffer == m_internal, m_buffer = m_internal);
|
||||
|
||||
QCheckBox *checkBox = createSubWidget<QCheckBox>();
|
||||
addToLayoutHelper(parent, checkBox);
|
||||
bufferToGui();
|
||||
@@ -1903,7 +1901,6 @@ void SelectionAspect::addToLayout(Layouting::LayoutItem &parent)
|
||||
QTC_CHECK(d->m_buttonGroup == nullptr);
|
||||
QTC_CHECK(!d->m_comboBox);
|
||||
QTC_ASSERT(d->m_buttons.isEmpty(), d->m_buttons.clear());
|
||||
QTC_ASSERT(m_buffer == m_internal, m_buffer = m_internal);
|
||||
|
||||
switch (d->m_displayStyle) {
|
||||
case DisplayStyle::RadioButtons:
|
||||
|
||||
Reference in New Issue
Block a user