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