Skip to content

Commit

Permalink
QgsVectorLayer::setSubsetString(): call updateFields()
Browse files Browse the repository at this point in the history
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.
1 change: 1 addition & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit e503ca8

Please sign in to comment.