Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 dddb32e
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 dddb32e

Please sign in to comment.