Skip to content
Permalink
Browse files

[ogr] Re-compute capabilities when a subset string is changed

  • Loading branch information
elpaso committed Nov 21, 2017
1 parent 9866b24 commit cbf4a891a74058ec8f38b40fad5a060ddf258603
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/providers/ogr/qgsogrprovider.cpp
@@ -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;

0 comments on commit cbf4a89

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