mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 12:12:39 +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) {
|
||||
if (!crashpadDatabase) {
|
||||
qCCritical(crash_handler) << "Can't set to enabled, crash handler not initialized!";
|
||||
return;
|
||||
}
|
||||
|
||||
auto settings = crashpadDatabase->GetSettings();
|
||||
settings->SetUploadsEnabled(enabled);
|
||||
|
||||
|
|
Loading…
Reference in a new issue