diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-03-27 18:43:33 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-03-27 18:43:33 +0200 |
commit | 82ab98c161e01de5a41902ea1961016b4d4bccca (patch) | |
tree | 9b5f2dd67ac6ac486e9e1a894950b2e5ed1abd04 /src | |
parent | 36866fe45f380c95b51130995b16381669f834de (diff) | |
download | abrt-82ab98c161e01de5a41902ea1961016b4d4bccca.tar.gz abrt-82ab98c161e01de5a41902ea1961016b4d4bccca.tar.xz abrt-82ab98c161e01de5a41902ea1961016b4d4bccca.zip |
gui-wizard-gtk: don't allow user to continue if analyzer fails
Diffstat (limited to 'src')
-rw-r--r-- | src/gui-wizard-gtk/wizard.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c index 31c7bb22..33a69110 100644 --- a/src/gui-wizard-gtk/wizard.c +++ b/src/gui-wizard-gtk/wizard.c @@ -780,8 +780,12 @@ static gboolean consume_cmd_output(GIOChannel *source, GIOCondition condition, g char *msg = xasprintf(evd->end_msg, retval); gtk_label_set_text(evd->status_label, msg); free(msg); - /* Unfreeze assistant */ - gtk_assistant_set_page_complete(g_assistant, evd->page_widget, true); + /* Unfreeze assistant + * we can't allow user to continue if analyze action fails + * i.e: if gdb fails to generate backtrace + */ + if (retval == 0 || (strncmp(evd->event_name, "analyze", strlen("analyze")) != 0)) + gtk_assistant_set_page_complete(g_assistant, evd->page_widget, true); /*g_source_remove(evd->event_source_id);*/ close(evd->fd); |