Skip to content

Commit f8971e0

Browse files
committed
enable wait cursor when wms search is ongoing (closes #4625)
1 parent 018eda5 commit f8971e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/providers/wms/qgswmssourceselect.cpp

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

1044+
QApplication::setOverrideCursor( Qt::WaitCursor );
1045+
10441046
QSettings settings;
10451047
QString mySearchUrl = settings.value( "/qgis/WMSSearchUrl", "http://geopole.org/wms/search?search=%1&type=rss" ).toString();
10461048
QUrl url( mySearchUrl.arg( leSearchTerm->text() ) );
@@ -1052,6 +1054,8 @@ void QgsWMSSourceSelect::on_btnSearch_clicked()
10521054

10531055
void QgsWMSSourceSelect::searchFinished()
10541056
{
1057+
QApplication::restoreOverrideCursor();
1058+
10551059
QNetworkReply *r = qobject_cast<QNetworkReply *>( sender() );
10561060
if ( !r )
10571061
return;

0 commit comments

Comments
 (0)