From 44c6f9400ed7d8db8a49f6e2b3f483e82c5efae9 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 20 Aug 2014 00:11:19 -0300 Subject: [PATCH] Add a notification to report the last crash --- data/widgets/options.xml | 4 +- data/widgets/send_crash.xml | 19 ++++++++ src/app/CMakeLists.txt | 3 +- src/app/app.cpp | 9 +++- src/app/app.h | 4 +- src/app/check_update.cpp | 14 +++++- src/app/check_update.h | 6 ++- src/app/commands/cmd_options.cpp | 14 +++++- src/app/notification_delegate.h | 36 ++++++++++++++ src/app/send_crash.cpp | 83 ++++++++++++++++++++++++++++++++ src/app/send_crash.h | 46 ++++++++++++++++++ src/app/ui/main_window.cpp | 4 +- src/app/ui/main_window.h | 3 +- src/app/ui/notifications.cpp | 17 +++---- src/app/ui/notifications.h | 4 +- src/main/main.cpp | 6 +-- 16 files changed, 248 insertions(+), 24 deletions(-) create mode 100644 data/widgets/send_crash.xml create mode 100644 src/app/notification_delegate.h create mode 100644 src/app/send_crash.cpp create mode 100644 src/app/send_crash.h diff --git a/data/widgets/options.xml b/data/widgets/options.xml index 27af3579d..46a09fd2f 100644 --- a/data/widgets/options.xml +++ b/data/widgets/options.xml @@ -22,6 +22,9 @@ + + + @@ -90,7 +93,6 @@ -