Skip to content

Commit

Permalink
Fix shapes not deleted on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and Marco Hugentobler committed Jan 22, 2016
1 parent 9193d8f commit 200ce04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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" )
{
Expand Down Expand Up @@ -2600,6 +2601,7 @@ bool QgsOgrProvider::syncToDisc()
return createSpatialIndex();
}

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

Expand Down

0 comments on commit 200ce04

Please sign in to comment.