From ef8e251cf8c7c8beeb13fcf1dae10cce364e34b4 Mon Sep 17 00:00:00 2001 From: David Signer Date: Tue, 26 Nov 2019 17:12:55 +0100 Subject: [PATCH] check if TEMP_PATH in the settings changed --- src/core/processing/qgsprocessingutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/processing/qgsprocessingutils.cpp b/src/core/processing/qgsprocessingutils.cpp index c267326cdfd..ad8b7884944 100644 --- a/src/core/processing/qgsprocessingutils.cpp +++ b/src/core/processing/qgsprocessingutils.cpp @@ -688,7 +688,7 @@ QString QgsProcessingUtils::tempFolder() static QString sFolder; static QMutex sMutex; sMutex.lock(); - if ( sFolder.isEmpty() ) + if ( sFolder.isEmpty() || !sFolder.startsWith( QgsSettings().value( QStringLiteral( "Processing/Configuration/TEMP_PATH" ), QDir::tempPath() ).toString() ) ) { QString subPath = QUuid::createUuid().toString().remove( '-' ).remove( '{' ).remove( '}' ); sFolder = QgsSettings().value( QStringLiteral( "Processing/Configuration/TEMP_PATH" ), QDir::tempPath() ).toString() + QStringLiteral( "/processing_" ) + subPath;