mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Create crashpad database directory before initializing CrashReportDatabase
This commit is contained in:
committed by
Mathew Sutcliffe
parent
452b2ce0d6
commit
dbcde5bcf5
@@ -1145,6 +1145,7 @@ namespace BlackCore
|
||||
annotations["prod"] = executable().toStdString();
|
||||
annotations["ver"] = CVersion::version().toStdString();
|
||||
|
||||
QDir().mkpath(database);
|
||||
m_crashReportDatabase = CrashReportDatabase::Initialize(qstringToFilePath(database));
|
||||
auto settings = m_crashReportDatabase->GetSettings();
|
||||
settings->SetUploadsEnabled(CBuildConfig::isReleaseBuild() && m_crashDumpUploadEnabled.getThreadLocal());
|
||||
|
||||
Reference in New Issue
Block a user