Skip to content
Permalink
Browse files

[processing] fix temporary directories handling

  • Loading branch information
alexbruy authored and nyalldawson committed May 18, 2018
1 parent e15f7cc commit 303a79a143b2ad5e4d53fead910bc456898cc29f
@@ -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.
You can’t perform that action at this time.