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

Commit d483767a authored by Laurent Montel's avatar Laurent Montel 😁

Fix potential crash

parent 1faf8843
......@@ -57,7 +57,10 @@ void SlideContainer::setContent(QWidget *content)
void SlideContainer::animTo(int newHeight)
{
delete mAnim.data();
if (mAnim.data()) {
mAnim.data()->deleteLater();
disconnect(mAnim.data(), &QPropertyAnimation::finished, this, &SlideContainer::slotAnimFinished);
}
QPropertyAnimation *anim = new QPropertyAnimation(this, "slideHeight", this);
anim->setDuration(SLIDE_DURATION);
anim->setStartValue(slideHeight());
......
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