Skip to content

Commit

Permalink
[georef] Followup 9041950, fix didn't work for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 22, 2015
1 parent c060947 commit 5f49335
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/georeferencer/qgsmapcoordsdialog.cpp
Expand Up @@ -115,6 +115,7 @@ void QgsMapCoordsDialog::maybeSetXY( const QgsPoint & xy, Qt::MouseButton button
leYCoord->setText( qgsDoubleToString( mapCoordPoint.y() ) );
}

parentWidget()->setWindowState(( parentWidget()->parentWidget()->windowState() & ~Qt::WindowMinimized ) | Qt::WindowActive );
parentWidget()->showNormal();
parentWidget()->activateWindow();
parentWidget()->raise();
Expand All @@ -130,6 +131,9 @@ void QgsMapCoordsDialog::setToolEmitPoint( bool isEnable )
if ( isEnable )
{
assert( parentWidget()->parentWidget() != 0 );

parentWidget()->parentWidget()->setWindowState(( parentWidget()->parentWidget()->windowState() & ~Qt::WindowMinimized ) | Qt::WindowActive );
parentWidget()->parentWidget()->showNormal();
parentWidget()->parentWidget()->activateWindow();
parentWidget()->parentWidget()->raise();

Expand Down

0 comments on commit 5f49335

Please sign in to comment.