Completely disable the crash handler if the user disabled it

The config currently only disable the reporter, but still leaves
the crash handler installed on startup. This causes conflicts
when running those builds in lldb.

Work around the issue by requiring the crash reporter to be
disabled in the settings before owncloud can be run in lldb.
This has the negative side-effect of not covering the
initial ConfigFile loading with the crash handler.

Issue #2946
This commit is contained in:
Jocelyn Turcotte 2015-03-11 15:34:53 +01:00
parent a2aab28ba6
commit 0fccf5e50d

View file

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