We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a94727 commit 3b47116Copy full SHA for 3b47116
src/providers/wfs/qgswfsshareddata.cpp
@@ -269,6 +269,7 @@ bool QgsWFSSharedData::createCache()
269
// Copy the temporary database back to disk
270
vsi_l_offset nLength = 0;
271
GByte *pabyData = VSIGetMemFileBuffer( vsimemFilename.toStdString().c_str(), &nLength, TRUE );
272
+ Q_ASSERT( !QFile::exists( mCacheDbname ) );
273
VSILFILE *fp = VSIFOpenL( mCacheDbname.toStdString().c_str(), "wb " );
274
if ( fp )
275
{
@@ -340,6 +341,7 @@ bool QgsWFSSharedData::createCache()
340
341
}
342
343
// Copy the in-memory template SpatiaLite DB into the target DB
344
345
QFile dbFile( mCacheDbname );
346
if ( !dbFile.open( QIODevice::WriteOnly | QIODevice::Truncate ) )
347
0 commit comments