[latexila/latexila-2-6] 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/latexila-2-6] Build tool runner: stop execution if a build job fails
- Date: Sat, 17 Nov 2012 18:11:44 +0000 (UTC)
commit cac2ba91337f1e606f2c8560d4a869c7b7cb8f5c
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]