Skip to content

Commit

Permalink
Connect to finished signal instead of rejected, as finished is fired …
Browse files Browse the repository at this point in the history
…last
  • Loading branch information
uclaros authored and nyalldawson committed Feb 7, 2024
1 parent b225a73 commit 56d39ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolmeasureangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void QgsMapToolMeasureAngle::canvasReleaseEvent( QgsMapMouseEvent *e )
{
mResultDisplay = new QgsDisplayAngle( this );
mResultDisplay->setWindowFlags( mResultDisplay->windowFlags() | Qt::Tool );
connect( mResultDisplay, &QDialog::rejected, this, &QgsMapToolMeasureAngle::stopMeasuring );
connect( mResultDisplay, &QDialog::finished, this, &QgsMapToolMeasureAngle::stopMeasuring );
}
configureDistanceArea();
createRubberBand();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolmeasurebearing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void QgsMapToolMeasureBearing::canvasReleaseEvent( QgsMapMouseEvent *e )
mResultDisplay = new QgsDisplayAngle( this );
mResultDisplay->setWindowFlags( mResultDisplay->windowFlags() | Qt::Tool );
mResultDisplay->setWindowTitle( tr( "Bearing" ) );
connect( mResultDisplay, &QDialog::rejected, this, &QgsMapToolMeasureBearing::stopMeasuring );
connect( mResultDisplay, &QDialog::finished, this, &QgsMapToolMeasureBearing::stopMeasuring );
}
configureDistanceArea();
createRubberBand();
Expand Down

0 comments on commit 56d39ce

Please sign in to comment.