summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tree.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 29b38c66..c19b1804 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -124,7 +124,13 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data)
data->exit_code = -1;
return;
}
-
+
+ if (tree_data->data == NULL) {
+ g_printerr (_("No contents specified for --list\n"));
+ data->exit_code = -1;
+ return;
+ }
+
glade_xml_signal_autoconnect (glade_dialog);
dialog = glade_xml_get_widget (glade_dialog, "zenity_tree_dialog");
bgstack15