Skip to content
Permalink
Browse files

restore arrow cursor when asking for credentials

git-svn-id: http://svn.osgeo.org/qgis/trunk@15144 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Feb 8, 2011
1 parent d646caf commit 2e5e3a14bbb222f93d4af23822e0fb9a59aff325
Showing with 15 additions and 1 deletion.
  1. +8 −0 src/app/qgswmssourceselect.cpp
  2. +7 −1 src/gui/qgscredentialdialog.cpp
@@ -415,6 +415,8 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )

if ( wmsProvider->baseUrl() != wmsProvider->getMapUrl() )
{
QApplication::setOverrideCursor( Qt::ArrowCursor );

if ( QMessageBox::information( this,
tr( "WMS Provider" ),
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 )
cbxIgnoreGetMap->setChecked( true );
}
cbxIgnoreGetMap->setEnabled( true );

QApplication::restoreOverrideCursor();
}
else
{
@@ -439,6 +443,8 @@ bool QgsWMSSourceSelect::populateLayerList( QgsWmsProvider *wmsProvider )

if ( wmsProvider->baseUrl() != wmsProvider->getFeatureInfoUrl() )
{
QApplication::setOverrideCursor( Qt::ArrowCursor );

if ( QMessageBox::information( this,
tr( "WMS Provider" ),
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 )
cbxIgnoreGetFeatureInfo->setChecked( true );
}
cbxIgnoreGetFeatureInfo->setEnabled( true );

QApplication::restoreOverrideCursor();
}

return true;
@@ -38,7 +38,13 @@ bool QgsCredentialDialog::request( QString realm, QString &username, QString &pa
labelMessage->setText( message );
labelMessage->setHidden( message.isEmpty() );

if ( exec() == QDialog::Accepted )
QApplication::setOverrideCursor( Qt::ArrowCursor );

int res = exec();

QApplication::restoreOverrideCursor();

if ( res == QDialog::Accepted )
{
username = leUsername->text();
password = lePassword->text();

0 comments on commit 2e5e3a1

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