Skip to content

Commit

Permalink
Do not reset ok to false when opening a GPKG
Browse files Browse the repository at this point in the history
Fixes #30590
  • Loading branch information
elpaso authored and nyalldawson committed Jul 7, 2019
1 parent ac0326a commit 34ad0b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -6493,11 +6493,11 @@ bool QgisApp::openLayer( const QString &fileName, bool allowInteractive )
{
if ( allowInteractive )
{
ok = addVectorLayersPrivate( QStringList( fileName ), QStringLiteral( "System" ), QStringLiteral( "file" ), false );
ok = ok || addVectorLayersPrivate( QStringList( fileName ), QStringLiteral( "System" ), QStringLiteral( "file" ), false );
}
else
{
ok = addVectorLayerPrivate( fileName, fileInfo.completeBaseName(), QStringLiteral( "ogr" ), false );
ok = ok || addVectorLayerPrivate( fileName, fileInfo.completeBaseName(), QStringLiteral( "ogr" ), false );
}
}

Expand Down

0 comments on commit 34ad0b1

Please sign in to comment.