forked from qt-creator/qt-creator
TaskTree: Introduce DoneWith enum
This makes it possible to recognize the cancel state when the task was automatically stopped because of task's parent group workflow policy or when the user called TaskTree::stop(). This addresses the 2nd point in the master task below. Task-number: QTCREATORBUG-28741 Task-number: QTCREATORBUG-29834 Change-Id: I2798b9ec1d2f1d667aff51ee0271a5a15a525dc1 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -175,8 +175,8 @@ SubversionDiffEditorController::SubversionDiffEditorController(IDocument *docume
|
||||
setDescription(Tr::tr("Waiting for data..."));
|
||||
return SetupResult::Continue;
|
||||
};
|
||||
const auto onDescriptionDone = [this](const Process &process, bool success) {
|
||||
setDescription(success ? process.cleanedStdOut() : QString());
|
||||
const auto onDescriptionDone = [this](const Process &process, DoneWith result) {
|
||||
setDescription(result == DoneWith::Success ? process.cleanedStdOut() : QString());
|
||||
};
|
||||
|
||||
const auto onDiffSetup = [this](Process &process) {
|
||||
|
||||
Reference in New Issue
Block a user