mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
check if TEMP_PATH in the settings changed
This commit is contained in:
parent
8274566b62
commit
ef8e251cf8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user