Blame SOURCES/0053-wizard-terminate-event-chain-after-the-emergency-ana.patch

4b6aa8
From 12b5ce27389c9adc3c3fdfb82a66b849954f8712 Mon Sep 17 00:00:00 2001
4b6aa8
From: Jakub Filak <jfilak@redhat.com>
4b6aa8
Date: Tue, 26 Aug 2014 12:51:19 +0200
4b6aa8
Subject: [LIBREPORT PATCH 53/93] wizard: terminate event chain after the
4b6aa8
 emergency analysis
4b6aa8
4b6aa8
Resolves rhbz#1133549
4b6aa8
Related to rhbz#1069917
4b6aa8
4b6aa8
Signed-off-by: Jakub Filak <jfilak@redhat.com>
4b6aa8
---
4b6aa8
 src/gui-wizard-gtk/wizard.c | 10 ++++++++++
4b6aa8
 1 file changed, 10 insertions(+)
4b6aa8
4b6aa8
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
4b6aa8
index d62ac04..caae1d2 100644
4b6aa8
--- a/src/gui-wizard-gtk/wizard.c
4b6aa8
+++ b/src/gui-wizard-gtk/wizard.c
4b6aa8
@@ -1790,6 +1790,16 @@ static bool event_need_review(const char *event_name)
4b6aa8
 
4b6aa8
 static void on_btn_failed_cb(GtkButton *button)
4b6aa8
 {
4b6aa8
+    /* Since the Repeat button has been introduced, the event chain isn't
4b6aa8
+     * terminated upon a failure in order to be able to continue in processing
4b6aa8
+     * in the retry action.
4b6aa8
+     *
4b6aa8
+     * Now, user decided to run the emergency analysis instead of trying to
4b6aa8
+     * reconfigure libreport, so we have to terminate the event chain.
4b6aa8
+     */
4b6aa8
+    gtk_widget_hide(g_btn_repeat);
4b6aa8
+    terminate_event_chain(TERMINATE_NOFLAGS);
4b6aa8
+
4b6aa8
     /* Show detailed log */
4b6aa8
     gtk_expander_set_expanded(g_exp_report_log, TRUE);
4b6aa8
 
4b6aa8
-- 
4b6aa8
1.8.3.1
4b6aa8