mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
provide default value when reading output folder setting to generate
destination path in Processing (fix #61965)
This commit is contained in:
parent
5f320b4369
commit
e6746493b9
@ -25,6 +25,7 @@
|
||||
#include "qgsprocessingcontext.h"
|
||||
#include "qgsprocessingalgorithm.h"
|
||||
#include "qgsfieldmappingwidget.h"
|
||||
#include "qgsapplication.h"
|
||||
#include <QMenu>
|
||||
#include <QFileDialog>
|
||||
#include <QInputDialog>
|
||||
@ -175,7 +176,7 @@ QVariant QgsProcessingLayerOutputDestinationWidget::value() const
|
||||
if ( folder == '.' )
|
||||
{
|
||||
// output name does not include a folder - use default
|
||||
QString defaultFolder = settings.value( QStringLiteral( "/Processing/Configuration/OUTPUTS_FOLDER" ) ).toString();
|
||||
QString defaultFolder = settings.value( QStringLiteral( "/Processing/Configuration/OUTPUTS_FOLDER" ), QStringLiteral( "%1/processing/outputs" ).arg( QgsApplication::qgisSettingsDirPath() ) ).toString();
|
||||
key = QDir( defaultFolder ).filePath( key );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user