Skip to content

Commit ce2f773

Browse files
committedMay 29, 2018
[processing] Correct text for temporary folder output
1 parent 68b7f5a commit ce2f773

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class DestinationSelectionPanel(BASE, WIDGET):
6161

6262
SAVE_TO_TEMP_FILE = QCoreApplication.translate(
6363
'DestinationSelectionPanel', '[Save to temporary file]')
64+
SAVE_TO_TEMP_FOLDER = QCoreApplication.translate(
65+
'DestinationSelectionPanel', '[Save to temporary folder]')
6466
SAVE_TO_TEMP_LAYER = QCoreApplication.translate(
6567
'DestinationSelectionPanel', '[Create temporary layer]')
6668
SKIP_OUTPUT = QCoreApplication.translate(
@@ -157,6 +159,8 @@ def selectOutput(self):
157159
def saveToTemporary(self):
158160
if isinstance(self.parameter, QgsProcessingParameterFeatureSink) and self.parameter.supportsNonFileBasedOutput():
159161
self.leText.setPlaceholderText(self.SAVE_TO_TEMP_LAYER)
162+
elif isinstance(self.parameter, QgsProcessingParameterFolderDestination):
163+
self.leText.setPlaceholderText(self.SAVE_TO_TEMP_FOLDER)
160164
else:
161165
self.leText.setPlaceholderText(self.SAVE_TO_TEMP_FILE)
162166
self.leText.setText('')

0 commit comments

Comments
 (0)