forked from qt-creator/qt-creator
TaskTree: Simplify withCancel() implementation
Don't use nested group, use conjunction instead. Change-Id: Ifd4a6d89d17b3fc6d90f8dff60e2f997759ed5a5 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1730,10 +1730,7 @@ Group ExecutableItem::withCancelImpl(
|
|||||||
return Group {
|
return Group {
|
||||||
parallel,
|
parallel,
|
||||||
stopOnSuccessOrError,
|
stopOnSuccessOrError,
|
||||||
Group {
|
BarrierTask(onSetup) && errorItem,
|
||||||
finishAllAndError,
|
|
||||||
BarrierTask(onSetup)
|
|
||||||
},
|
|
||||||
*this
|
*this
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user