Skip to content

Commit c5f478c

Browse files
committedMay 14, 2018
[processing] Fix destination resets to 'memory:' instead of temporary layer
1 parent 1a45a79 commit c5f478c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎python/plugins/processing/gui/DestinationSelectionPanel.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,12 @@ def setValue(self, value):
290290
if value == 'memory:' or not value:
291291
self.saveToTemporary()
292292
elif isinstance(value, QgsProcessingOutputLayerDefinition):
293-
self.leText.setText(value.sink.staticValue())
293+
if value.sink.staticValue() == 'memory:':
294+
self.saveToTemporary()
295+
else:
296+
self.leText.setText(value.sink.staticValue())
297+
self.use_temporary = False
294298
self.encoding = value.createOptions['fileEncoding']
295-
self.use_temporary = False
296299
else:
297300
self.leText.setText(value)
298301
self.use_temporary = False

0 commit comments

Comments
 (0)
Please sign in to comment.