Skip to content

Commit

Permalink
fix signal and don't silently save on close
Browse files Browse the repository at this point in the history
  • Loading branch information
roya0045 authored and nyalldawson committed Feb 9, 2021
1 parent 07c23ab commit 97b0cb8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/georeferencer/qgsgeorefmainwindow.cpp
Expand Up @@ -162,10 +162,7 @@ void QgsGeoreferencerMainWindow::closeEvent( QCloseEvent *e )
switch ( checkNeedGCPSave() )
{
case QgsGeoreferencerMainWindow::GCPSAVE:
if ( mGCPpointsFileName.isEmpty() )
saveGCPsDialog();
else
saveGCPs();
saveGCPsDialog();
writeSettings();
clearGCPData();
removeOldLayer();
Expand Down Expand Up @@ -1184,7 +1181,7 @@ void QgsGeoreferencerMainWindow::setupConnections()

// Connect mapCanvas rotation widget
connect( mRotationEdit, static_cast < void ( QgsDoubleSpinBox::* )( double ) > ( &QgsDoubleSpinBox::valueChanged ), this, &QgsGeoreferencerMainWindow::updateCanvasRotation );
connect( mCanvas, &QgsMapCanvas::destinationCrsChanged, this, &QgsGeoreferencerMainWindow::invalidateCanvasCoords );
connect( QgisApp::instance()->mapCanvas(), &QgsMapCanvas::destinationCrsChanged, this, &QgsGeoreferencerMainWindow::invalidateCanvasCoords );
}

void QgsGeoreferencerMainWindow::removeOldLayer()
Expand Down

0 comments on commit 97b0cb8

Please sign in to comment.