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 authored and alexbruy committed Dec 18, 2011
1 parent 488dd05 commit cab91b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgswmssourceselect.cpp
Expand Up @@ -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() ) );
Expand All @@ -1106,6 +1108,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 cab91b5

Please sign in to comment.