Skip to content
Permalink
Browse files

[geocoder] When cloning a geocoder filter, preserve the fetch results…

… delay value
  • Loading branch information
nirvn committed Dec 16, 2020
1 parent e066bab commit 56fe4fa28edbee871046630707384d3003caaa2b
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgsgeocoderlocatorfilter.cpp
@@ -27,7 +27,9 @@ QgsGeocoderLocatorFilter::QgsGeocoderLocatorFilter( const QString &name, const Q

QgsLocatorFilter *QgsGeocoderLocatorFilter::clone() const
{
return new QgsGeocoderLocatorFilter( name(), displayName(), prefix(), geocoder(), mCanvas );
QgsLocatorFilter *filter = new QgsGeocoderLocatorFilter( name(), displayName(), prefix(), geocoder(), mCanvas );
filter->setFetchResultsDelay( fetchResultsDelay() );
return filter;
}

void QgsGeocoderLocatorFilter::handleGeocodeResult( const QgsGeocoderResult &result )

0 comments on commit 56fe4fa

Please sign in to comment.
You can’t perform that action at this time.