Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ogr] Re-compute capabilities when a subset string is changed
  • Loading branch information
elpaso committed Nov 21, 2017
1 parent 9866b24 commit cbf4a89
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -573,12 +573,15 @@ bool QgsOgrProvider::setSubsetString( const QString &theSQL, bool updateFeatureC
}

// check the validity of the layer
QgsDebugMsg( "checking validity" );
QgsDebugMsgLevel( "checking validity", 4 );
loadFields();
QgsDebugMsg( "Done checking validity" );
QgsDebugMsgLevel( "Done checking validity", 4 );

invalidateCachedExtent( false );

// Changing the filter may change capabilities
computeCapabilities();

emit dataChanged();

return true;
Expand Down

0 comments on commit cbf4a89

Please sign in to comment.