summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar@redhat.com>2011-05-17 13:18:17 +0200
committerMiroslav Lichvar <mlichvar@redhat.com>2011-05-17 13:18:17 +0200
commitda8bc03e7da479c42969f896f6191d04cd462df3 (patch)
tree308383ddca72a308848e175ab5ffddf3424f706b
parentc91d721a4a7fb52e3763d34a8956138f7f2f9591 (diff)
downloadabrt-da8bc03e7da479c42969f896f6191d04cd462df3.tar.gz
abrt-da8bc03e7da479c42969f896f6191d04cd462df3.tar.xz
abrt-da8bc03e7da479c42969f896f6191d04cd462df3.zip
wizard: fix assertion failure with report-only option
-rw-r--r--src/gui-wizard-gtk/wizard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
index 23d9141d..dc6de107 100644
--- a/src/gui-wizard-gtk/wizard.c
+++ b/src/gui-wizard-gtk/wizard.c
@@ -1110,6 +1110,10 @@ static void on_comment_changed(GtkTextBuffer *buffer, gpointer user_data)
{
bool good = gtk_text_buffer_get_char_count(buffer) >= 10;
+ /* The page doesn't exist with report-only option */
+ if (pages[PAGENO_COMMENT].page_widget == NULL)
+ return;
+
/* Allow next page only when the comment has at least 10 chars */
gtk_assistant_set_page_complete(g_assistant, pages[PAGENO_COMMENT].page_widget, good);