Navigation Menu

Skip to content

Commit

Permalink
Fix resolving memory layers when multiple memory layers are used in m…
Browse files Browse the repository at this point in the history
…odel
  • Loading branch information
nyalldawson committed May 2, 2017
1 parent 2b1dda4 commit b1eecfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/plugins/processing/tools/vector.py
Expand Up @@ -557,6 +557,7 @@ def createVectorWriter(destination, encoding, fields, geometryType, crs, context
layer = QgsVectorLayer(uri, destination, 'memory')
sink = layer.dataProvider()
context.temporaryLayerStore().addMapLayer(layer, False)
destination = layer.id()
elif destination.startswith(POSTGIS_LAYER_PREFIX):
uri = QgsDataSourceUri(destination[len(POSTGIS_LAYER_PREFIX):])
connInfo = uri.connectionInfo()
Expand Down

0 comments on commit b1eecfd

Please sign in to comment.