[latexila] Build tool runner: stop execution if a build job fails
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Build tool runner: stop execution if a build job fails
- Date: Sat, 17 Nov 2012 18:10:05 +0000 (UTC)
commit 616b760cbe2a8328e9ffeb4857ddb43344a6f2cf
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Sat Nov 17 19:07:15 2012 +0100
Build tool runner: stop execution if a build job fails
src/build_tool_runner.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/build_tool_runner.vala b/src/build_tool_runner.vala
index 97121a7..6459cab 100644
--- a/src/build_tool_runner.vala
+++ b/src/build_tool_runner.vala
@@ -152,9 +152,13 @@ public class BuildToolRunner : GLib.Object
if (_aborted)
return;
- BuildState state = success ? BuildState.SUCCEEDED : BuildState.FAILED;
- _view.set_title_state (_current_job_title, state);
+ if (! success)
+ {
+ failed ();
+ return;
+ }
+ _view.set_title_state (_current_job_title, BuildState.SUCCEEDED);
_job_num++;
run ();
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]