From 6abaad1ae877b685c354cc473e103dd0d40ec2d5 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 28 Aug 2014 16:23:14 +0200 Subject: [PATCH] Show crash reporter if trying to read the crash-reporter-enabled config crashes --- src/gui/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 618d274da..c76d363fa 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -59,8 +59,9 @@ int main(int argc, char **argv) #ifdef WITH_CRASHREPORTER + CrashReporter::Handler* handler = new CrashReporter::Handler( QDir::tempPath(), true, "owncloud_crash_reporter" ); MirallConfigFile cfgFile; - new CrashReporter::Handler( QDir::tempPath(), cfgFile.crashReporter(), "owncloud_crash_reporter" ); + handler->setActive(cfgFile.crashReporter()); #endif #ifndef Q_OS_WIN