From 1ccfb71b1c18bbafc511e1876209d7bc3367cf4f Mon Sep 17 00:00:00 2001 From: uclaros Date: Sat, 1 Aug 2020 10:50:52 +0300 Subject: [PATCH] Don't restore georeferencer window if it was maximized --- src/app/georeferencer/qgsmapcoordsdialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/georeferencer/qgsmapcoordsdialog.cpp b/src/app/georeferencer/qgsmapcoordsdialog.cpp index 145f388fb43..95fb4045a74 100644 --- a/src/app/georeferencer/qgsmapcoordsdialog.cpp +++ b/src/app/georeferencer/qgsmapcoordsdialog.cpp @@ -110,7 +110,9 @@ void QgsMapCoordsDialog::maybeSetXY( const QgsPointXY &xy, Qt::MouseButton butto leYCoord->setText( qgsDoubleToString( mapCoordPoint.y() ) ); } - parentWidget()->showNormal(); + // only restore window if it was minimized + if ( parentWidget()->windowState().testFlag( Qt::WindowMinimized ) ) + parentWidget()->showNormal(); parentWidget()->activateWindow(); parentWidget()->raise();