Don't restore georeferencer window if it was maximized

This commit is contained in:
uclaros 2020-08-01 10:50:52 +03:00
parent 15a4c3928c
commit 1ccfb71b1c

View File

@ -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();