Skip to content

Commit 200ce04

Browse files
unknownMarco Hugentobler
authored andcommittedJan 22, 2016
Fix shapes not deleted on windows
1 parent 9193d8f commit 200ce04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/providers/ogr/qgsogrprovider.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,6 +2565,7 @@ QString QgsOgrUtils::quotedValue( const QVariant& value )
25652565
bool QgsOgrProvider::syncToDisc()
25662566
{
25672567
//for shapefiles, remove spatial index files and create a new index
2568+
QgsOgrConnPool::unrefS( mFilePath );
25682569
bool shapeIndex = false;
25692570
if ( ogrDriverName == "ESRI Shapefile" )
25702571
{
@@ -2600,6 +2601,7 @@ bool QgsOgrProvider::syncToDisc()
26002601
return createSpatialIndex();
26012602
}
26022603

2604+
QgsOgrConnPool::refS( mFilePath );
26032605
return true;
26042606
}
26052607

0 commit comments

Comments
 (0)
Please sign in to comment.