Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
restore active window after requesting credentials (fixes #11355)
  • Loading branch information
jef-n committed Oct 16, 2014
1 parent dfafa5d commit d05b039
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgscredentialdialog.cpp
Expand Up @@ -63,6 +63,8 @@ void QgsCredentialDialog::requestCredentials( QString realm, QString *username,
if ( !leUsername->text().isEmpty() )
lePassword->setFocus();

QWidget *activeWindow = qApp->activeWindow();

QApplication::setOverrideCursor( Qt::ArrowCursor );

QgsDebugMsg( "exec()" );
Expand All @@ -71,6 +73,9 @@ void QgsCredentialDialog::requestCredentials( QString realm, QString *username,

QApplication::restoreOverrideCursor();

if( activeWindow )
activeWindow->raise();

if ( *ok )
{
*username = leUsername->text();
Expand Down

0 comments on commit d05b039

Please sign in to comment.