Skip to content
Permalink
Browse files

Fix shapes not deleted on windows

  • Loading branch information
unknown Marco Hugentobler
unknown authored and Marco Hugentobler committed Jan 22, 2016
1 parent 9193d8f commit 200ce04b88c515d9880615d7254e45d1a50049a4
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -2565,6 +2565,7 @@ QString QgsOgrUtils::quotedValue( const QVariant& value )
bool QgsOgrProvider::syncToDisc()
{
//for shapefiles, remove spatial index files and create a new index
QgsOgrConnPool::unrefS( mFilePath );
bool shapeIndex = false;
if ( ogrDriverName == "ESRI Shapefile" )
{
@@ -2600,6 +2601,7 @@ bool QgsOgrProvider::syncToDisc()
return createSpatialIndex();
}

QgsOgrConnPool::refS( mFilePath );
return true;
}

0 comments on commit 200ce04

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