Blame SOURCES/0064-applet-confirm-ignoring-of-notifications.patch

06486d
From ba356330db1c797ac050b6229f75474aed39faa7 Mon Sep 17 00:00:00 2001
06486d
From: Jakub Filak <jfilak@redhat.com>
06486d
Date: Wed, 1 Oct 2014 17:14:50 +0200
06486d
Subject: [ABRT PATCH 64/66] applet: confirm ignoring of notifications
06486d
06486d
and fix a bug in abrt-action-notify
06486d
06486d
Resolves #1084031
06486d
06486d
Signed-off-by: Jakub Filak <jfilak@redhat.com>
06486d
---
06486d
 src/applet/applet.c            | 16 +++++++++++++---
06486d
 src/plugins/abrt-action-notify |  2 +-
06486d
 2 files changed, 14 insertions(+), 4 deletions(-)
06486d
06486d
diff --git a/src/applet/applet.c b/src/applet/applet.c
06486d
index b1ce400..a40f877 100644
06486d
--- a/src/applet/applet.c
06486d
+++ b/src/applet/applet.c
06486d
@@ -666,9 +666,19 @@ static void action_ignore(NotifyNotification *notification, gchar *action, gpoin
06486d
 {
06486d
     problem_info_t *pi = (problem_info_t *)user_data;
06486d
 
06486d
-    log_debug("Ignoring problem '%s'", problem_info_get_dir(pi));
06486d
-
06486d
-    ignored_problems_add_problem_data(g_ignore_set, pi->problem_data);
06486d
+    const char *const message = _(
06486d
+            "You are going to mute notifications of a particular problem. " \
06486d
+            "You will never see a notification bubble for this problem again, " \
06486d
+            "however, ABRT will be detecting it and you will be able " \
06486d
+            "to report it from ABRT GUI." \
06486d
+            "\n\n" \
06486d
+            "Do you want to continue?");
06486d
+
06486d
+    if (run_ask_yes_no_yesforever_dialog("AskIgnoreForever", message, NULL))
06486d
+    {
06486d
+        log_debug("Ignoring problem '%s'", problem_info_get_dir(pi));
06486d
+        ignored_problems_add_problem_data(g_ignore_set, pi->problem_data);
06486d
+    }
06486d
 
06486d
     GError *err = NULL;
06486d
     notify_notification_close(notification, &err;;
06486d
diff --git a/src/plugins/abrt-action-notify b/src/plugins/abrt-action-notify
06486d
index cbabf74..8b8f38e 100644
06486d
--- a/src/plugins/abrt-action-notify
06486d
+++ b/src/plugins/abrt-action-notify
06486d
@@ -99,7 +99,7 @@ def emit_crash_dbus_signal(problem_data):
06486d
         # member is a Boolean flag which is True if the element is required
06486d
         arguments = ((FILENAME_PACKAGE, True), (CD_DUMPDIR, True),
06486d
                 (FILENAME_UID, False), (FILENAME_UUID, False),
06486d
-                (FILENAME_PACKAGE, False))
06486d
+                (FILENAME_DUPHASH, False))
06486d
 
06486d
         for elem in arguments:
06486d
             itm = problem_data.get(elem[0])
06486d
-- 
06486d
1.8.3.1
06486d