Skip to content

Commit cbf4a89

Browse files
committed
[ogr] Re-compute capabilities when a subset string is changed
1 parent 9866b24 commit cbf4a89

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/providers/ogr/qgsogrprovider.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -573,12 +573,15 @@ bool QgsOgrProvider::setSubsetString( const QString &theSQL, bool updateFeatureC
573573
}
574574

575575
// check the validity of the layer
576-
QgsDebugMsg( "checking validity" );
576+
QgsDebugMsgLevel( "checking validity", 4 );
577577
loadFields();
578-
QgsDebugMsg( "Done checking validity" );
578+
QgsDebugMsgLevel( "Done checking validity", 4 );
579579

580580
invalidateCachedExtent( false );
581581

582+
// Changing the filter may change capabilities
583+
computeCapabilities();
584+
582585
emit dataChanged();
583586

584587
return true;

0 commit comments

Comments
 (0)