aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/executor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/buildgraph/executor.cpp')
-rw-r--r--src/lib/corelib/buildgraph/executor.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/corelib/buildgraph/executor.cpp b/src/lib/corelib/buildgraph/executor.cpp
index afe0522f8..775674862 100644
--- a/src/lib/corelib/buildgraph/executor.cpp
+++ b/src/lib/corelib/buildgraph/executor.cpp
@@ -866,10 +866,9 @@ void Executor::onJobFinished(const qbs::ErrorInfo &err)
}
}
- ExecutorJob * const job = qobject_cast<ExecutorJob *>(sender());
- QBS_CHECK(job);
-
try {
+ ExecutorJob * const job = qobject_cast<ExecutorJob *>(sender());
+ QBS_CHECK(job);
finishJob(job, !err.hasError());
} catch (const ErrorInfo &error) {
handleError(error);