abrt/abrt-2.1.1-disable_autoreporting_dialog.patch
2013-03-05 12:27:57 +01:00

31 lines
1.2 KiB
Diff

diff -ur abrt-2.1.1/src/applet/applet.c abrt-2.1.1.new/src/applet/applet.c
--- abrt-2.1.1/src/applet/applet.c 2013-02-01 17:05:40.000000000 +0100
+++ abrt-2.1.1.new/src/applet/applet.c 2013-03-05 12:16:42.463747490 +0100
@@ -89,25 +89,7 @@
static void ask_start_autoreporting()
{
- /* The "Yes" response will be saved even if user don't check the
- * "Don't ask me again" box.
- */
- const int ret = run_ask_yes_no_save_result_dialog("AutoreportingEnabled",
- _("The report which will be sent does not contain any security sensitive data. "
- "Therefore it is not necessary to bother you next time and require any further action by you. "
- "\nDo you want to enable automatically submitted anonymous crash reports?"),
- /*parent wnd */ NULL);
-
- /* Don't forget:
- *
- * The "Yes" response will be saved even if user don't check the
- * "Don't ask me again" box.
- */
- if (ret != 0)
- set_user_setting("AutoreportingEnabled", "yes");
-
- /* must be called immediately, otherwise the data could be lost in case of crash */
- save_user_settings();
+ return;
}
static bool is_shortened_reporting_enabled()