Skip to content

Commit

Permalink
[processing] don't show cancel button in the task manager for algorit…
Browse files Browse the repository at this point in the history
…hms that can not be cancelled (refs #20441)
  • Loading branch information
alexbruy authored and nyalldawson committed Jan 29, 2019
1 parent 60b8d05 commit b19e0bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/processing/qgsprocessingalgrunnertask.cpp
Expand Up @@ -23,7 +23,7 @@
#include "qgsvectorlayer.h"

QgsProcessingAlgRunnerTask::QgsProcessingAlgRunnerTask( const QgsProcessingAlgorithm *algorithm, const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback )
: QgsTask( tr( "Executing “%1”" ).arg( algorithm->displayName() ), QgsTask::CanCancel )
: QgsTask( tr( "Executing “%1”" ).arg( algorithm->displayName() ), algorithm->flags() & QgsProcessingAlgorithm::FlagCanCancel ? QgsTask::CanCancel : QgsTask::Flag() )
, mParameters( parameters )
, mContext( context )
, mFeedback( feedback )
Expand Down

0 comments on commit b19e0bd

Please sign in to comment.