mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-03 00:04:47 -04:00
Compare commits
1 Commits
1cf7fdf7cb
...
b142ebbede
Author | SHA1 | Date | |
---|---|---|---|
|
b142ebbede |
@ -41,7 +41,7 @@ def userFolder():
|
|||||||
|
|
||||||
|
|
||||||
def defaultOutputFolder():
|
def defaultOutputFolder():
|
||||||
folder = os.path.join(QDir.homePath(), "processing")
|
folder = os.path.join(userFolder(), "outputs")
|
||||||
if not QDir(folder).exists():
|
if not QDir(folder).exists():
|
||||||
QDir().mkpath(folder)
|
QDir().mkpath(folder)
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#include "qgsprocessingcontext.h"
|
#include "qgsprocessingcontext.h"
|
||||||
#include "qgsprocessingalgorithm.h"
|
#include "qgsprocessingalgorithm.h"
|
||||||
#include "qgsfieldmappingwidget.h"
|
#include "qgsfieldmappingwidget.h"
|
||||||
#include "qgsapplication.h"
|
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
@ -176,7 +175,7 @@ QVariant QgsProcessingLayerOutputDestinationWidget::value() const
|
|||||||
if ( folder == '.' )
|
if ( folder == '.' )
|
||||||
{
|
{
|
||||||
// output name does not include a folder - use default
|
// output name does not include a folder - use default
|
||||||
QString defaultFolder = settings.value( QStringLiteral( "/Processing/Configuration/OUTPUTS_FOLDER" ), QStringLiteral( "%1/processing" ).arg( QDir::homePath() ) ).toString();
|
QString defaultFolder = settings.value( QStringLiteral( "/Processing/Configuration/OUTPUTS_FOLDER" ) ).toString();
|
||||||
key = QDir( defaultFolder ).filePath( key );
|
key = QDir( defaultFolder ).filePath( key );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user