Skip to content

Commit

Permalink
removing the featureCount() request since it would recalculate it ins…
Browse files Browse the repository at this point in the history
…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 dd0cc93
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/providers/wfs/qgswfsprovider.cpp
Expand Up @@ -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 )
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit dd0cc93

Please sign in to comment.