Merge pull request #1065 from daleglass-overte/fix-crashhandler-crash

Fix crash in setCrashReporterEnabled
This commit is contained in:
Dale Glass 2024-07-06 16:04:06 +02:00 committed by GitHub
commit c2c8dbb1f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -457,6 +457,11 @@ bool startCrashHandler(std::string appPath, std::string crashURL, std::string cr
}
void setCrashReportingEnabled(bool enabled) {
if (!crashpadDatabase) {
qCCritical(crash_handler) << "Can't set to enabled, crash handler not initialized!";
return;
}
auto settings = crashpadDatabase->GetSettings();
settings->SetUploadsEnabled(enabled);