crashhandler: include git commit hash

This commit is contained in:
itsmattkc
2020-05-01 02:09:59 +10:00
parent 95b7c9770c
commit 1f76c33f6b
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -41,7 +41,8 @@
OLIVE_NAMESPACE_ENTER
void crash_handler(int sig) {
void crash_handler(int sig)
{
QString log_path = QDir(FileFunctions::GetTempFilePath()).filePath(QStringLiteral("olive_crash"));
QFile output(log_path);
+1
View File
@@ -46,6 +46,7 @@ CrashHandlerDialog::CrashHandlerDialog(const char *log_file)
edit->append(QStringLiteral("Run Environment: %1").arg(QSysInfo::currentCpuArchitecture()));
edit->append(QStringLiteral("Kernel: %1 %2").arg(QSysInfo::kernelType(), QSysInfo::kernelVersion()));
edit->append(QStringLiteral("System: %1 (%2 %3)").arg(QSysInfo::prettyProductName(), QSysInfo::productType(), QSysInfo::productVersion()));
edit->append(QStringLiteral("Version: %1").arg(GITHASH);
edit->append(QString());
QDialogButtonBox* buttons = new QDialogButtonBox();