mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 11:42:55 +02:00
Fix crash in setCrashReporterEnabled
This commit is contained in:
parent
f6f9d37527
commit
34f308ac48
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