Skip to content

Commit

Permalink
[GUI] Open vector layer dialog: do not expose GPKG 'NOLOCK' open option
Browse files Browse the repository at this point in the history
This option is automatically set by the OGR provider. No need for the
user to mess with it.

Refs #47098 (comment)
  • Loading branch information
rouault authored and github-actions[bot] committed Mar 30, 2022
1 parent 9ac2723 commit d3a77b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/providers/ogr/qgsogrsourceselect.cpp
Expand Up @@ -691,6 +691,11 @@ void QgsOgrSourceSelect::fillOpenOptions()
!EQUAL( pszOptionName, "PRELUDE_STATEMENTS" ) )
continue;

// The NOLOCK option is automatically set by the OGR provider. Do not
// expose it
if ( bIsGPKG && EQUAL( pszOptionName, "NOLOCK" ) )
continue;

// Do not list database options already asked in the database dialog
if ( radioSrcDatabase->isChecked() &&
( EQUAL( pszOptionName, "USER" ) ||
Expand Down

0 comments on commit d3a77b6

Please sign in to comment.