aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-importer.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-importer.c')
-rw-r--r--shell/e-shell-importer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/e-shell-importer.c b/shell/e-shell-importer.c
index 35bb771653..ab8d4f6caa 100644
--- a/shell/e-shell-importer.c
+++ b/shell/e-shell-importer.c
@@ -165,9 +165,12 @@ create_help (const char *name)
if (!strcmp (name, info[i].name))
break;
}
- g_assert(i != num_info);
- label = gtk_label_new(_(info[i].text));
+ if (i >= num_info)
+ g_warning ("i > num_info\n");
+
+
+ label = gtk_label_new(i < num_info ? _(info[i].text): NULL);
gtk_widget_show (label);
gtk_label_set_line_wrap((GtkLabel *)label, TRUE);