Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Better fix for crash on spacer tool (fixes effectstack missing scrollbar)

parent ed547a46
Pipeline #9690 passed with stage
in 27 minutes and 1 second
......@@ -210,10 +210,7 @@ CollapsibleEffectView::CollapsibleEffectView(const std::shared_ptr<EffectItemMod
cb->installEventFilter(this);
cb->setFocusPolicy(Qt::StrongFocus);
}
if (m_model->isCollapsed()) {
widgetFrame->setFixedHeight(0);
setFixedHeight(widgetFrame->height() + frame->minimumHeight() + 2 * (contentsMargins().top() + decoframe->lineWidth()));
}
QMetaObject::invokeMethod(this, "slotSwitch", Qt::QueuedConnection, Q_ARG(bool, false));
}
CollapsibleEffectView::~CollapsibleEffectView()
......
......@@ -293,6 +293,9 @@ void EffectStackView::slotAdjustDelegate(const std::shared_ptr<EffectItemModel>
{
qDebug() << "MUTEX LOCK!!!!!!!!!!!! adjustdelegate: " << height;
//QMutexLocker lock(&m_mutex);
if (!m_model) {
return;
}
QModelIndex ix = m_model->getIndexFromItem(effectModel);
auto *del = static_cast<WidgetDelegate *>(m_effectsTree->itemDelegate(ix));
if (del) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment