Skip to content
Permalink
Browse files

[processing] Correct text for temporary folder output

  • Loading branch information
nyalldawson committed May 29, 2018
1 parent 68b7f5a commit ce2f7739e7e7f2ee4ce46c5ddcf606c88f2e423a
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/plugins/processing/gui/DestinationSelectionPanel.py
@@ -61,6 +61,8 @@ class DestinationSelectionPanel(BASE, WIDGET):

SAVE_TO_TEMP_FILE = QCoreApplication.translate(
'DestinationSelectionPanel', '[Save to temporary file]')
SAVE_TO_TEMP_FOLDER = QCoreApplication.translate(
'DestinationSelectionPanel', '[Save to temporary folder]')
SAVE_TO_TEMP_LAYER = QCoreApplication.translate(
'DestinationSelectionPanel', '[Create temporary layer]')
SKIP_OUTPUT = QCoreApplication.translate(
@@ -157,6 +159,8 @@ def selectOutput(self):
def saveToTemporary(self):
if isinstance(self.parameter, QgsProcessingParameterFeatureSink) and self.parameter.supportsNonFileBasedOutput():
self.leText.setPlaceholderText(self.SAVE_TO_TEMP_LAYER)
elif isinstance(self.parameter, QgsProcessingParameterFolderDestination):
self.leText.setPlaceholderText(self.SAVE_TO_TEMP_FOLDER)
else:
self.leText.setPlaceholderText(self.SAVE_TO_TEMP_FILE)
self.leText.setText('')

0 comments on commit ce2f773

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