Skip to content
Permalink
Browse files
enable wait cursor when wms search is ongoing (closes #4625)
  • Loading branch information
jef-n authored and alexbruy committed Dec 18, 2011
1 parent 488dd05 commit cab91b57a54b6a3d1736ccdcfa2734276ac98e7f
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgswmssourceselect.cpp
@@ -1095,6 +1095,8 @@ void QgsWMSSourceSelect::on_btnSearch_clicked()
// disable Add WMS button
btnAddWMS->setEnabled( false );

QApplication::setOverrideCursor( Qt::WaitCursor );

QSettings settings;
QString mySearchUrl = settings.value( "/qgis/WMSSearchUrl", "http://geopole.org/wms/search?search=%1&type=rss" ).toString();
QUrl url( mySearchUrl.arg( leSearchTerm->text() ) );
@@ -1106,6 +1108,8 @@ void QgsWMSSourceSelect::on_btnSearch_clicked()

void QgsWMSSourceSelect::searchFinished()
{
QApplication::restoreOverrideCursor();

QNetworkReply *r = qobject_cast<QNetworkReply *>( sender() );
if ( !r )
return;

0 comments on commit cab91b5

Please sign in to comment.