[latexila] Build Tools: avoid a segfault



commit 081eb9fd29ab6fc5d0daaa3bcdea1a9fc2c5d4b2
Author: SÃbastien Wilmet <swilmet src gnome org>
Date:   Tue Sep 27 00:06:37 2011 +0200

    Build Tools: avoid a segfault

 TODO                       |    2 --
 src/build_tool_dialog.vala |    1 +
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/TODO b/TODO
index 184280e..4d259d8 100644
--- a/TODO
+++ b/TODO
@@ -9,8 +9,6 @@ LaTeXila 2.4
 - Add XeLaTeX to the build tools, example:
 	$ latexmk -pdf -e '$pdflatex=q/xelatex %O %S/' $filename
 
-- Propose the GtkSpell vapi upstream
-
 - Migrate to GTK+ 3.0
   I wanted to make the migration for the 2.2 release but GtkSourceView 3.0 have removed the
   gtk_source_completion_info_set_sizing() function.
diff --git a/src/build_tool_dialog.vala b/src/build_tool_dialog.vala
index 6646fb5..cc81e47 100644
--- a/src/build_tool_dialog.vala
+++ b/src/build_tool_dialog.vala
@@ -382,6 +382,7 @@ private class BuildToolDialog : Dialog
             tool.description =
                 entry_desc.text.strip () == "" ? tool.label : entry_desc.text.strip ();
             tool.extensions = entry_extensions.text.strip ();
+            tool.jobs = new Gee.ArrayList<BuildJob?> ();
 
             combobox_icon.get_active_iter (out iter);
             TreeModel model = combobox_icon.get_model ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]