Skip to content

Commit

Permalink
Properly connect deleters
Browse files Browse the repository at this point in the history
fixes a crash
  • Loading branch information
m-kuhn committed Mar 18, 2019
1 parent 2ae8f36 commit 89e0ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsgeometryvalidationdock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void QgsGeometryValidationDock::showHighlight( const QModelIndex &current )

QPropertyAnimation *errorAnimation = new QPropertyAnimation( mErrorRubberband, "fillColor" );
errorAnimation->setEasingCurve( QEasingCurve::OutQuad );
connect( errorAnimation, &QPropertyAnimation::finished, featureAnimation, &QPropertyAnimation::deleteLater );
connect( errorAnimation, &QPropertyAnimation::finished, errorAnimation, &QPropertyAnimation::deleteLater );
connect( errorAnimation, &QPropertyAnimation::valueChanged, this, [this]
{
mErrorRubberband->update();
Expand Down

0 comments on commit 89e0ff9

Please sign in to comment.