Skip to content

Commit

Permalink
[processing] Fix "Truncate table" (native:truncatetable) alg
Browse files Browse the repository at this point in the history
Allow also no-geometry layer as input layer.
  • Loading branch information
agiudiceandrea authored Feb 7, 2024
1 parent bffe2ea commit a48bbb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmtruncatetable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ QgsTruncateTableAlgorithm *QgsTruncateTableAlgorithm::createInstance() const

void QgsTruncateTableAlgorithm::initAlgorithm( const QVariantMap & )
{
addParameter( new QgsProcessingParameterVectorLayer( QStringLiteral( "INPUT" ), QObject::tr( "Input layer" ) ) );
addParameter( new QgsProcessingParameterVectorLayer( QStringLiteral( "INPUT" ), QObject::tr( "Input layer" ), QList<int>() << QgsProcessing::TypeVector ) );
addOutput( new QgsProcessingOutputVectorLayer( QStringLiteral( "OUTPUT" ), QObject::tr( "Truncated layer" ) ) );
}

Expand Down

0 comments on commit a48bbb8

Please sign in to comment.