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 qgis#47098 (comment)
  • Loading branch information
rouault committed Mar 28, 2022
1 parent ffbe19a commit 3db73dc
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 3db73dc

Please sign in to comment.