Skip to content

Commit

Permalink
Readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 25, 2021
1 parent 0601381 commit a3ec181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/browser/qgsfilebaseddataitemprovider.cpp
Expand Up @@ -187,7 +187,7 @@ QgsAbstractDatabaseProviderConnection *QgsFileDataCollectionItem::databaseConnec
// do not print errors, but write to debug
CPLPushErrorHandler( CPLQuietErrorHandler );
CPLErrorReset();
gdal::dataset_unique_ptr hDS( GDALOpenEx( path().toUtf8().constData(), GDAL_OF_VECTOR, nullptr, nullptr, nullptr ) );
gdal::dataset_unique_ptr hDS( GDALOpenEx( path().toUtf8().constData(), GDAL_OF_VECTOR | GDAL_OF_READONLY, nullptr, nullptr, nullptr ) );
CPLPopErrorHandler();

if ( ! hDS )
Expand Down

0 comments on commit a3ec181

Please sign in to comment.