Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Show spinner in locator widget
  • Loading branch information
m-kuhn committed Oct 24, 2017
1 parent e9d6e38 commit 2940be1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/locator/qgslocatorwidget.cpp
Expand Up @@ -172,6 +172,11 @@ void QgsLocatorWidget::searchFinished()
mHasQueuedRequest = false;
updateResults( nextSearch );
}
else
{
if ( !mLocator->isRunning() )
mLineEdit->setShowSpinner( false );
}
}

bool QgsLocatorWidget::eventFilter( QObject *obj, QEvent *event )
Expand Down Expand Up @@ -292,6 +297,7 @@ void QgsLocatorWidget::configMenuAboutToShow()

void QgsLocatorWidget::updateResults( const QString &text )
{
mLineEdit->setShowSpinner( true );
if ( mLocator->isRunning() )
{
// can't do anything while a query is running, and can't block
Expand Down

0 comments on commit 2940be1

Please sign in to comment.