Skip to content
Permalink
Browse files

If map tool implements own deactivate() method, it _should_ call also…

… QgsMapTool::deactivate()

otherwise some things like deactivation of associated action/button won't work properly.


git-svn-id: http://svn.osgeo.org/qgis/trunk@9664 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Nov 18, 2008
1 parent 4c5e483 commit 11578cb4cf347ca7ed0cfbc1d9b189f7eae8f4f3
@@ -121,4 +121,6 @@ void QgsMapToolAddVertex::deactivate()
{
delete mRubberBand;
mRubberBand = 0;

QgsMapTool::deactivate();
}
@@ -83,6 +83,8 @@ void QgsMapToolCapture::deactivate()
delete mRubberBand;
mRubberBand = 0;
mCaptureList.clear();

QgsMapTool::deactivate();
}

int QgsMapToolCapture::addVertex( const QPoint& p )
@@ -93,4 +93,6 @@ void QgsMapToolDeleteVertex::deactivate()
{
delete mCross;
mCross = 0;

QgsMapTool::deactivate();
}
@@ -150,4 +150,6 @@ void QgsMapToolMoveFeature::deactivate()
//delete rubber band
delete mRubberBand;
mRubberBand = 0;

QgsMapTool::deactivate();
}
@@ -188,6 +188,8 @@ void QgsMapToolMoveVertex::canvasReleaseEvent( QMouseEvent * e )
void QgsMapToolMoveVertex::deactivate()
{
removeRubberBands();

QgsMapTool::deactivate();
}

void QgsMapToolMoveVertex::removeRubberBands()

0 comments on commit 11578cb

Please sign in to comment.
You can’t perform that action at this time.