We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 9193d8f commit 200ce04Copy full SHA for 200ce04
src/providers/ogr/qgsogrprovider.cpp
@@ -2565,6 +2565,7 @@ QString QgsOgrUtils::quotedValue( const QVariant& value )
2565
bool QgsOgrProvider::syncToDisc()
2566
{
2567
//for shapefiles, remove spatial index files and create a new index
2568
+ QgsOgrConnPool::unrefS( mFilePath );
2569
bool shapeIndex = false;
2570
if ( ogrDriverName == "ESRI Shapefile" )
2571
@@ -2600,6 +2601,7 @@ bool QgsOgrProvider::syncToDisc()
2600
2601
return createSpatialIndex();
2602
}
2603
2604
+ QgsOgrConnPool::refS( mFilePath );
2605
return true;
2606
2607
0 commit comments