Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Schmidt <domme@tomahawk-player.org>2014-08-26 20:07:42 +0400
committerDominik Schmidt <domme@tomahawk-player.org>2014-08-26 20:15:13 +0400
commit2b4849a2fae0a38ee646eda53511de38604bb9c8 (patch)
treea0931472c8d5c0398ade89b48489ada12e959360 /src/gui/main.cpp
parent17e16f5e79ea3aec6d9161aa591afcba48a34133 (diff)
Add crash reporter using libcrashreporter-qt
Diffstat (limited to 'src/gui/main.cpp')
-rw-r--r--src/gui/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/main.cpp b/src/gui/main.cpp
index 8b7921859..1df5f2a37 100644
--- a/src/gui/main.cpp
+++ b/src/gui/main.cpp
@@ -28,6 +28,10 @@
#include "updater/updater.h"
+#ifdef WITH_CRASHREPORTER
+ #include "../3rdparty/libcrashreporter-qt/src/libcrashreporter-handler/Handler.h"
+#endif
+
#include <QTimer>
#include <QMessageBox>
@@ -51,6 +55,12 @@ int main(int argc, char **argv)
Mac::CocoaInitializer cocoaInit; // RIIA
#endif
Mirall::Application app(argc, argv);
+
+
+#ifdef WITH_CRASHREPORTER
+ new CrashReporter::Handler( QDir::tempPath(), true, "owncloud_crash_reporter" );
+#endif
+
#ifndef Q_OS_WIN
signal(SIGPIPE, SIG_IGN);
#endif