Skip to content

Commit cab91b5

Browse files
jef-nalexbruy
authored andcommittedDec 18, 2011
enable wait cursor when wms search is ongoing (closes #4625)
1 parent 488dd05 commit cab91b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/app/qgswmssourceselect.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,8 @@ void QgsWMSSourceSelect::on_btnSearch_clicked()
10951095
// disable Add WMS button
10961096
btnAddWMS->setEnabled( false );
10971097

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

11071109
void QgsWMSSourceSelect::searchFinished()
11081110
{
1111+
QApplication::restoreOverrideCursor();
1112+
11091113
QNetworkReply *r = qobject_cast<QNetworkReply *>( sender() );
11101114
if ( !r )
11111115
return;

0 commit comments

Comments
 (0)
Please sign in to comment.