Merge pull request #38080 from uclaros/georef-restore

Don't restore georeferencer window if it was maximized
This commit is contained in:
Matthias Kuhn 2020-08-01 15:00:04 +02:00 committed by GitHub
commit 46a91533d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,9 @@ void QgsMapCoordsDialog::maybeSetXY( const QgsPointXY &xy, Qt::MouseButton butto
leYCoord->setText( qgsDoubleToString( mapCoordPoint.y() ) ); 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()->activateWindow();
parentWidget()->raise(); parentWidget()->raise();