Skip to content
Permalink
Browse files

Only switch Qgis to previous used tool if the current tool is the mov…

…e point tool
  • Loading branch information
uclaros authored and nyalldawson committed Jul 13, 2020
1 parent a6c6fa8 commit d176f1d84d76c387a5adf227fc4abf11e40bd72d
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/app/georeferencer/qgsgeorefmainwindow.cpp
@@ -401,14 +401,16 @@ void QgsGeoreferencerMainWindow::generateGDALScript()
void QgsGeoreferencerMainWindow::setAddPointTool()
{
mCanvas->setMapTool( mToolAddPoint );
if ( mPrevQgisMapTool )
QgsMapTool *activeQgisMapTool = QgisApp::instance()->mapCanvas()->mapTool();
if ( activeQgisMapTool == mToolMovePointQgis )
QgisApp::instance()->mapCanvas()->setMapTool( mPrevQgisMapTool );
}

void QgsGeoreferencerMainWindow::setDeletePointTool()
{
mCanvas->setMapTool( mToolDeletePoint );
if ( mPrevQgisMapTool )
QgsMapTool *activeQgisMapTool = QgisApp::instance()->mapCanvas()->mapTool();
if ( activeQgisMapTool == mToolMovePointQgis )
QgisApp::instance()->mapCanvas()->setMapTool( mPrevQgisMapTool );
}

0 comments on commit d176f1d

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