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 Apr 19, 2016
1 parent 1da1c27 commit e503ca82e23f121ebc9b8cc7fccf8d9b6c9bb010
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/qgsvectorlayer.cpp
@@ -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.
You can’t perform that action at this time.