Skip to content
Permalink
Browse files
[processing] fix temporary directories handling
  • Loading branch information
alexbruy authored and nyalldawson committed May 20, 2018
1 parent e15f7cc commit 303a79a143b2ad5e4d53fead910bc456898cc29f
Showing with 9 additions and 2 deletions.
  1. +1 −1 python/plugins/processing/gui/DestinationSelectionPanel.py
  2. +8 −1 src/core/processing/qgsprocessingparameters.cpp
@@ -313,7 +313,7 @@ def getValue(self):
return None

if isinstance(self.parameter, QgsProcessingParameterFolderDestination):
return self.leText.text()
return key

if isinstance(self.parameter, QgsProcessingParameterFileDestination):
return key
@@ -3643,7 +3643,14 @@ bool QgsProcessingDestinationParameter::fromVariantMap( const QVariantMap &map )

QString QgsProcessingDestinationParameter::generateTemporaryDestination() const
{
return QgsProcessingUtils::generateTempFilename( name() + '.' + defaultFileExtension() );
if ( defaultFileExtension().isEmpty() )
{
return QgsProcessingUtils::generateTempFilename( name() );
}
else
{
return QgsProcessingUtils::generateTempFilename( name() + '.' + defaultFileExtension() );
}
}

bool QgsProcessingDestinationParameter::createByDefault() const

0 comments on commit 303a79a

Please sign in to comment.