Commit 5b1f3170 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

fix the annoying "Unexpected null receiver" message

parent 14f91cf1
......@@ -713,8 +713,10 @@ void dtkWidgetsOverlayPaneSliderPrivate::setCurrentIndex(int index, std::functio
connect(t_animation, &QAbstractAnimation::finished, [=] (void) -> void
{
this->animation->deleteLater();
this->animation = nullptr;
if (this->animation) {
this->animation->deleteLater();
this->animation = nullptr;
}
callback();
......
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