Skip to content

Commit e503ca8

Browse files
committedMay 12, 2016
QgsVectorLayer::setSubsetString(): call updateFields()
Useful for WFS provider whose setSubsetString() can potentially modify fields if changing the SELECT fields
1 parent 1da1c27 commit e503ca8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ bool QgsVectorLayer::setSubsetString( const QString& subset )
979979
// get the updated data source string from the provider
980980
mDataSource = mDataProvider->dataSourceUri();
981981
updateExtents();
982+
updateFields();
982983

983984
if ( res )
984985
emit repaintRequested();

0 commit comments

Comments
 (0)
Please sign in to comment.