Skip to content
Permalink
Browse files

fix signal and don't silently save on close

  • Loading branch information
roya0045 authored and nyalldawson committed Feb 9, 2021
1 parent 07c23ab commit 97b0cb8272b234d52e5639a2b9f32287974803b6
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/app/georeferencer/qgsgeorefmainwindow.cpp
@@ -162,10 +162,7 @@ void QgsGeoreferencerMainWindow::closeEvent( QCloseEvent *e )
switch ( checkNeedGCPSave() )
{
case QgsGeoreferencerMainWindow::GCPSAVE:
if ( mGCPpointsFileName.isEmpty() )
saveGCPsDialog();
else
saveGCPs();
saveGCPsDialog();
writeSettings();
clearGCPData();
removeOldLayer();
@@ -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()

0 comments on commit 97b0cb8

Please sign in to comment.