Create crashpad database directory before initializing CrashReportDatabase

This commit is contained in:
Roland Winklmeier
2017-03-09 10:07:50 +01:00
committed by Mathew Sutcliffe
parent 452b2ce0d6
commit dbcde5bcf5

View File

@@ -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());