Skip to content
Permalink
Browse files

restore active window after requesting credentials (fixes #11355)

  • Loading branch information
jef-n committed Oct 16, 2014
1 parent dfafa5d commit d05b0395412b15cea934459db9fb002a2df5c393
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/qgscredentialdialog.cpp
@@ -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()" );
@@ -71,6 +73,9 @@ void QgsCredentialDialog::requestCredentials( QString realm, QString *username,

QApplication::restoreOverrideCursor();

if( activeWindow )
activeWindow->raise();

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

0 comments on commit d05b039

Please sign in to comment.
You can’t perform that action at this time.