Skip to content

Commit 2e5e3a1

Browse files
author
jef
committed
restore arrow cursor when asking for credentials
git-svn-id: http://svn.osgeo.org/qgis/trunk@15144 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d646caf commit 2e5e3a1

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/app/qgswmssourceselect.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
415415

416416
if ( wmsProvider->baseUrl() != wmsProvider->getMapUrl() )
417417
{
418+
QApplication::setOverrideCursor( Qt::ArrowCursor );
419+
418420
if ( QMessageBox::information( this,
419421
tr( "WMS Provider" ),
420422
tr( "Advertised GetMap URL\n\n %2\n\nis different from GetCapabilities URL\n\n %1\n\n"
@@ -430,6 +432,8 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
430432
cbxIgnoreGetMap->setChecked( true );
431433
}
432434
cbxIgnoreGetMap->setEnabled( true );
435+
436+
QApplication::restoreOverrideCursor();
433437
}
434438
else
435439
{
@@ -439,6 +443,8 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
439443

440444
if ( wmsProvider->baseUrl() != wmsProvider->getFeatureInfoUrl() )
441445
{
446+
QApplication::setOverrideCursor( Qt::ArrowCursor );
447+
442448
if ( QMessageBox::information( this,
443449
tr( "WMS Provider" ),
444450
tr( "Advertised GetFeatureInfo URL\n\n %2\n\nis different from GetCapabilities URL\n\n %1\n\n"
@@ -454,6 +460,8 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )
454460
cbxIgnoreGetFeatureInfo->setChecked( true );
455461
}
456462
cbxIgnoreGetFeatureInfo->setEnabled( true );
463+
464+
QApplication::restoreOverrideCursor();
457465
}
458466

459467
return true;

src/gui/qgscredentialdialog.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ bool QgsCredentialDialog::request( QString realm, QString &username, QString &pa
3838
labelMessage->setText( message );
3939
labelMessage->setHidden( message.isEmpty() );
4040

41-
if ( exec() == QDialog::Accepted )
41+
QApplication::setOverrideCursor( Qt::ArrowCursor );
42+
43+
int res = exec();
44+
45+
QApplication::restoreOverrideCursor();
46+
47+
if ( res == QDialog::Accepted )
4248
{
4349
username = leUsername->text();
4450
password = lePassword->text();

0 commit comments

Comments
 (0)