Skip to content

Commit

Permalink
enable wait cursor when wms search is ongoing (closes #4625)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Dec 10, 2011
1 parent 018eda5 commit f8971e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/wms/qgswmssourceselect.cpp
Expand Up @@ -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() ) );
Expand All @@ -1052,6 +1054,8 @@ void QgsWMSSourceSelect::on_btnSearch_clicked()

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

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

0 comments on commit f8971e0

Please sign in to comment.