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/qgis@9664 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Nov 18, 2008
1 parent 83678fc commit d07dced0e6ca5805f473fc6fa81fb040648fc2be
@@ -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 d07dced

Please sign in to comment.