Blob Blame Raw
From ac5caa31a929c3ed9cf2950c95333aa79a979f3b Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Tue, 26 Aug 2014 12:51:19 +0200
Subject: [LIBREPORT PATCH] wizard: terminate event chain after the emergency
 analysis

Resolves rhbz#1133549
Related to rhbz#1069917

Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
 src/gui-wizard-gtk/wizard.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
index e4718bf..5779052 100644
--- a/src/gui-wizard-gtk/wizard.c
+++ b/src/gui-wizard-gtk/wizard.c
@@ -1752,6 +1752,16 @@ static bool event_need_review(const char *event_name)
 
 static void on_btn_failed_cb(GtkButton *button)
 {
+    /* Since the Repeat button has been introduced, the event chain isn't
+     * terminated upon a failure in order to be able to continue in processing
+     * in the retry action.
+     *
+     * Now, user decided to run the emergency analysis instead of trying to
+     * reconfigure libreport, so we have to terminate the event chain.
+     */
+    gtk_widget_hide(g_btn_repeat);
+    terminate_event_chain(TERMINATE_NOFLAGS);
+
     /* Show detailed log */
     gtk_expander_set_expanded(g_exp_report_log, TRUE);
 
-- 
1.8.3.1