QgsVectorLayer::setSubsetString(): call updateFields()

Useful for WFS provider whose setSubsetString() can potentially
modify fields if changing the SELECT fields
This commit is contained in:
Even Rouault 2016-04-19 22:00:29 +02:00
parent 1da1c278e7
commit e503ca82e2

View File

@ -979,6 +979,7 @@ bool QgsVectorLayer::setSubsetString( const QString& subset )
// get the updated data source string from the provider
mDataSource = mDataProvider->dataSourceUri();
updateExtents();
updateFields();
if ( res )
emit repaintRequested();