Skip to content

Commit

Permalink
Fix file check
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Dec 24, 2015
1 parent c9b0ab1 commit 09e23ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -2563,7 +2563,7 @@ bool QgsOgrProvider::syncToDisc()
sbnIndexFile.chop( suffixLength );
sbnIndexFile.append( "sbn" );

if ( !sbnIndexFile.isEmpty() )
if ( QFile::exists( sbnIndexFile ) )
{
shapeIndex = true;
close();
Expand Down

0 comments on commit 09e23ee

Please sign in to comment.