Skip to content
Permalink
Browse files

removing the featureCount() request since it would recalculate it ins…

…tead of resetting the count so it could be recalculated on the next featureCount()
  • Loading branch information
signedav committed Dec 17, 2019
1 parent 0755647 commit dd0cc932d42baf968d8bd3703ada936c5dd9574a
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/providers/wfs/qgswfsprovider.cpp
@@ -714,6 +714,8 @@ QString QgsWFSProvider::subsetString() const

bool QgsWFSProvider::setSubsetString( const QString &theSQL, bool updateFeatureCount )
{
Q_UNUSED( updateFeatureCount )

QgsDebugMsgLevel( QStringLiteral( "theSql = '%1'" ).arg( theSQL ), 4 );

if ( theSQL == mSubsetString )
@@ -756,12 +758,7 @@ bool QgsWFSProvider::setSubsetString( const QString &theSQL, bool updateFeatureC
if ( !mShared->computeFilter( errorMsg ) )
QgsMessageLog::logMessage( errorMsg, tr( "WFS" ) );


mShared->invalidateCache();
if ( updateFeatureCount )
featureCount();

emit dataChanged();
reloadData();

return true;
}

0 comments on commit dd0cc93

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