Blame 0038-stop-sending-ureports-from-abrt-applet.patch

69165ba
From 9bc8bc16ca37d2e5c0caa20649a92dc1ae814051 Mon Sep 17 00:00:00 2001
69165ba
From: Jakub Filak <jfilak@redhat.com>
69165ba
Date: Mon, 24 Feb 2014 11:24:20 +0100
69165ba
Subject: [ABRT PATCH 38/40] stop sending ureports from abrt-applet
69165ba
69165ba
Related to rhbz#1067114
69165ba
69165ba
Signed-off-by: Jakub Filak <jfilak@redhat.com>
69165ba
---
69165ba
 src/applet/applet.c | 10 ++++++++++
69165ba
 1 file changed, 10 insertions(+)
69165ba
69165ba
diff --git a/src/applet/applet.c b/src/applet/applet.c
69165ba
index 131d2ab..6ce400f 100644
69165ba
--- a/src/applet/applet.c
69165ba
+++ b/src/applet/applet.c
69165ba
@@ -49,6 +49,8 @@
69165ba
 
69165ba
 #define GUI_EXECUTABLE "gnome-abrt"
69165ba
 
69165ba
+#define RHBZ_1067114_NO_UREPORT
69165ba
+
69165ba
 enum
69165ba
 {
69165ba
     /*
69165ba
@@ -90,6 +92,7 @@ static bool is_autoreporting_enabled(void)
69165ba
     return get_configured_bool_or_default("AutoreportingEnabled", g_settings_autoreporting);
69165ba
 }
69165ba
 
69165ba
+#ifndef RHBZ_1067114_NO_UREPORT
69165ba
 static bool is_ureport_auth_enabled(void)
69165ba
 {
69165ba
     bool success, auth_enabled;
69165ba
@@ -110,6 +113,7 @@ static bool is_ureport_auth_enabled(void)
69165ba
 
69165ba
     return auth_enabled;
69165ba
 }
69165ba
+#endif//RHBZ_1067114_NO_UREPORT
69165ba
 
69165ba
 static const char *get_autoreport_event_name(void)
69165ba
 {
69165ba
@@ -118,6 +122,7 @@ static const char *get_autoreport_event_name(void)
69165ba
     return configured ? configured : g_settings_autoreporting_event;
69165ba
 }
69165ba
 
69165ba
+#ifndef RHBZ_1067114_NO_UREPORT
69165ba
 static void ask_start_autoreporting()
69165ba
 {
69165ba
     struct strbuf *question = strbuf_new();
69165ba
@@ -156,6 +161,7 @@ static void ask_start_autoreporting()
69165ba
     /* must be called immediately, otherwise the data could be lost in case of crash */
69165ba
     save_user_settings();
69165ba
 }
69165ba
+#endif//RHBZ_1067114_NO_UREPORT
69165ba
 
69165ba
 static bool is_shortened_reporting_enabled()
69165ba
 {
69165ba
@@ -632,10 +638,13 @@ static void action_report(NotifyNotification *notification, gchar *action, gpoin
69165ba
     problem_info_t *pi = (problem_info_t *)user_data;
69165ba
     if (problem_info_get_dir(pi))
69165ba
     {
69165ba
+#ifndef RHBZ_1067114_NO_UREPORT
69165ba
         if (strcmp(A_REPORT_REPORT, action) == 0)
69165ba
         {
69165ba
+#endif//RHBZ_1067114_NO_UREPORT
69165ba
             run_report_from_applet(problem_info_get_dir(pi));
69165ba
             problem_info_free(pi);
69165ba
+#ifndef RHBZ_1067114_NO_UREPORT
69165ba
         }
69165ba
         else
69165ba
         {
69165ba
@@ -647,6 +656,7 @@ static void action_report(NotifyNotification *notification, gchar *action, gpoin
69165ba
             run_event_async(pi, get_autoreport_event_name(),
69165ba
                 is_shortened_reporting_enabled() ? 0 : REPORT_UNKNOWN_PROBLEM_IMMEDIATELY);
69165ba
         }
69165ba
+#endif//RHBZ_1067114_NO_UREPORT
69165ba
     }
69165ba
     else
69165ba
         problem_info_free(pi);
69165ba
-- 
69165ba
1.8.3.1
69165ba