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

This commit is contained in:
Alessandro Pasotti 2017-11-21 16:58:42 +01:00
parent 9866b2402b
commit cbf4a891a7

View File

@ -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;