@@ -478,7 +478,7 @@ def createVectorWriter(destination, encoding, fields, geometryType, crs, context
478
478
479
479
layer = QgsVectorLayer (uri , destination , 'memory' )
480
480
sink = layer .dataProvider ()
481
- context .temporaryLayerStore ().addMapLayer (layer , False )
481
+ context .temporaryLayerStore ().addMapLayer (layer )
482
482
destination = layer .id ()
483
483
elif destination .startswith (POSTGIS_LAYER_PREFIX ):
484
484
uri = QgsDataSourceUri (destination [len (POSTGIS_LAYER_PREFIX ):])
@@ -515,7 +515,7 @@ def _runSQL(sql):
515
515
516
516
layer = QgsVectorLayer (uri .uri (), uri .table (), "postgres" )
517
517
sink = layer .dataProvider ()
518
- context .temporaryLayerStore ().addMapLayer (layer , False )
518
+ context .temporaryLayerStore ().addMapLayer (layer )
519
519
elif destination .startswith (SPATIALITE_LAYER_PREFIX ):
520
520
uri = QgsDataSourceUri (destination [len (SPATIALITE_LAYER_PREFIX ):])
521
521
try :
@@ -545,7 +545,7 @@ def _runSQL(sql):
545
545
546
546
layer = QgsVectorLayer (uri .uri (), uri .table (), "spatialite" )
547
547
sink = layer .dataProvider ()
548
- context .temporaryLayerStore ().addMapLayer (layer , False )
548
+ context .temporaryLayerStore ().addMapLayer (layer )
549
549
else :
550
550
formats = QgsVectorFileWriter .supportedFiltersAndFormats ()
551
551
OGRCodes = {}
0 commit comments