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 nirvn committed Mar 31, 2022
1 parent 6285ee4 commit afe05ba
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 afe05ba

Please sign in to comment.