mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
[WFS provider] Fix crash when calling setSubsetString() with a SQL that modifies the fields while a download is in progress
This commit is contained in:
parent
496c3f03a1
commit
fa74b04ee9
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user