mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:37:48 +02:00
Merge pull request #1065 from daleglass-overte/fix-crashhandler-crash
Fix crash in setCrashReporterEnabled
This commit is contained in:
commit
c2c8dbb1f9
1 changed files with 5 additions and 0 deletions
|
@ -457,6 +457,11 @@ bool startCrashHandler(std::string appPath, std::string crashURL, std::string cr
|
||||||
}
|
}
|
||||||
|
|
||||||
void setCrashReportingEnabled(bool enabled) {
|
void setCrashReportingEnabled(bool enabled) {
|
||||||
|
if (!crashpadDatabase) {
|
||||||
|
qCCritical(crash_handler) << "Can't set to enabled, crash handler not initialized!";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto settings = crashpadDatabase->GetSettings();
|
auto settings = crashpadDatabase->GetSettings();
|
||||||
settings->SetUploadsEnabled(enabled);
|
settings->SetUploadsEnabled(enabled);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue