Show crash reporter if trying to read the crash-reporter-enabled config crashes

This commit is contained in:
Dominik Schmidt 2014-08-28 16:23:14 +02:00
parent 89aec52503
commit 6abaad1ae8

View file

@ -59,8 +59,9 @@ int main(int argc, char **argv)
#ifdef WITH_CRASHREPORTER #ifdef WITH_CRASHREPORTER
CrashReporter::Handler* handler = new CrashReporter::Handler( QDir::tempPath(), true, "owncloud_crash_reporter" );
MirallConfigFile cfgFile; MirallConfigFile cfgFile;
new CrashReporter::Handler( QDir::tempPath(), cfgFile.crashReporter(), "owncloud_crash_reporter" ); handler->setActive(cfgFile.crashReporter());
#endif #endif
#ifndef Q_OS_WIN #ifndef Q_OS_WIN