Skip to content

Commit

Permalink
Merge pull request #1065 from daleglass-overte/fix-crashhandler-crash
Browse files Browse the repository at this point in the history
Fix crash in setCrashReporterEnabled
  • Loading branch information
daleglass authored Jul 6, 2024
2 parents f6f9d37 + 34f308a commit c2c8dbb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c2c8dbb

Please sign in to comment.