Skip to content
Permalink
Browse files

[processing] Fix destination resets to 'memory:' instead of temporary…

… layer
  • Loading branch information
nyalldawson committed May 7, 2018
1 parent 1a45a79 commit c5f478c38fc9a2a351c2ba2e8dd0d6dd14719980
Showing with 5 additions and 2 deletions.
  1. +5 −2 python/plugins/processing/gui/DestinationSelectionPanel.py
@@ -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

0 comments on commit c5f478c

Please sign in to comment.
You can’t perform that action at this time.