From da8bc03e7da479c42969f896f6191d04cd462df3 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 17 May 2011 13:18:17 +0200 Subject: wizard: fix assertion failure with report-only option --- src/gui-wizard-gtk/wizard.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit