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)
  • Loading branch information
alexbruy authored and nyalldawson committed Jan 29, 2019
1 parent 60b8d05 commit b19e0bd5d441b2584b663cac77073928c0314ff4
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 b19e0bd

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