Skip to content
Permalink
Browse files

[processing] don't show cancel button in the task manager for algorit…

…hms that can not be cancelled (refs #20441)

(cherry picked from commit b19e0bd)
  • Loading branch information
alexbruy committed Jan 31, 2019
1 parent 95e45a3 commit dddb32e349ad27205150be2bc4ce20c4e85aa27e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/processing/qgsprocessingalgrunnertask.cpp
@@ -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 )

0 comments on commit dddb32e

Please sign in to comment.
You can’t perform that action at this time.