Skip to content
Permalink
Browse files
enable wait cursor when wms search is ongoing (closes #4625)
  • Loading branch information
jef-n committed Dec 10, 2011
1 parent 018eda5 commit f8971e0eb92e8c017823930341e25e41925b7c7a
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/providers/wms/qgswmssourceselect.cpp
@@ -1041,6 +1041,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() ) );
@@ -1052,6 +1054,8 @@ void QgsWMSSourceSelect::on_btnSearch_clicked()

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

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

0 comments on commit f8971e0

Please sign in to comment.