Skip to content
Permalink
Browse files
QgsVectorLayer::setSubsetString(): call updateFields()
Useful for WFS provider whose setSubsetString() can potentially
modify fields if changing the SELECT fields
  • Loading branch information
rouault committed May 12, 2016
1 parent 1da1c27 commit e503ca8
Showing 1 changed file with 1 addition and 0 deletions.
@@ -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();

0 comments on commit e503ca8

Please sign in to comment.