fix: abort logic running subsequent tasks anyways some times

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-07-24 17:16:14 -03:00
parent c410bb4ecb
commit bdf464e792
2 changed files with 16 additions and 8 deletions

View File

@ -9,7 +9,9 @@ class ConcurrentTask : public Task {
Q_OBJECT
public:
explicit ConcurrentTask(QObject* parent = nullptr, QString task_name = "", int max_concurrent = 6);
virtual ~ConcurrentTask();
~ConcurrentTask() override;
bool canAbort() const override { return true; }
inline auto isMultiStep() const -> bool override { return m_queue.size() > 1; };
auto getStepProgress() const -> qint64 override;