Skip to content
Permalink
Browse files

[WFS provider] Fix crash when calling setSubsetString() with a SQL th…

…at modifies the fields while a download is in progress
  • Loading branch information
rouault committed Jun 7, 2016
1 parent 496c3f0 commit fa74b04ee963b91f58c272b7f84f53fcf069195c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/providers/wfs/qgswfsprovider.cpp
@@ -656,6 +656,11 @@ QString QgsWFSProvider::subsetString()
bool QgsWFSProvider::setSubsetString( const QString& theSQL, bool updateFeatureCount )
{
QgsDebugMsg( QString( "theSql = '%1'" ).arg( theSQL ) );

// Invalid and cancel current download before altering fields, etc...
// (crashes might happen if not done at the beginning)
mShared->invalidateCache();

mSubsetString = theSQL;
mCacheMinMaxDirty = true;

0 comments on commit fa74b04

Please sign in to comment.
You can’t perform that action at this time.