[latexila/wip/latexila-next: 56/56] BuildToolDialog: avoid critical message
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/latexila-next: 56/56] BuildToolDialog: avoid critical message
- Date: Sat, 13 Sep 2014 20:59:29 +0000 (UTC)
commit df434621fc136a6bc804afaa65d0f469e3bcc799
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Sep 13 22:52:02 2014 +0200
BuildToolDialog: avoid critical message
gtk_entry_set_text() doesn't accept a NULL text.
src/build_tool_dialog.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/build_tool_dialog.vala b/src/build_tool_dialog.vala
index 3b1f6b0..faa9770 100644
--- a/src/build_tool_dialog.vala
+++ b/src/build_tool_dialog.vala
@@ -432,10 +432,10 @@ public class BuildToolDialog : GLib.Object
{
/* Text entries */
- _entry_label.text = build_tool.label;
- _entry_desc.text = build_tool.get_description ();
- _entry_extensions.text = build_tool.extensions;
- _entry_files_to_open.text = build_tool.files_to_open;
+ _entry_label.text = build_tool.label ?? "";
+ _entry_desc.text = build_tool.get_description () ?? "";
+ _entry_extensions.text = build_tool.extensions ?? "";
+ _entry_files_to_open.text = build_tool.files_to_open ?? "";
/* Icon */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]