Skip to content

Commit

Permalink
[processing] Fix destination resets to 'memory:' instead of temporary…
Browse files Browse the repository at this point in the history
… layer
  • Loading branch information
nyalldawson committed May 14, 2018
1 parent 1a45a79 commit c5f478c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/plugins/processing/gui/DestinationSelectionPanel.py
Expand Up @@ -290,9 +290,12 @@ def setValue(self, value):
if value == 'memory:' or not value:
self.saveToTemporary()
elif isinstance(value, QgsProcessingOutputLayerDefinition):
self.leText.setText(value.sink.staticValue())
if value.sink.staticValue() == 'memory:':
self.saveToTemporary()
else:
self.leText.setText(value.sink.staticValue())
self.use_temporary = False
self.encoding = value.createOptions['fileEncoding']
self.use_temporary = False
else:
self.leText.setText(value)
self.use_temporary = False
Expand Down

0 comments on commit c5f478c

Please sign in to comment.