crashhandler: include git commit hash with crash report

This commit is contained in:
itsmattkc
2020-05-01 02:11:26 +10:00
parent 1f76c33f6b
commit 8c8bb45f7f
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void crash_handler(int sig)
output.open(QFile::WriteOnly);
QTextStream ostream(&output);
ostream << "Signal: " << sig << "\n\n";
ostream << "Version: " << GITHASH << "\nSignal: " << sig << "\n\n";
#if defined(Q_OS_WINDOWS)
// Use Windows stackwalk API
-1
View File
@@ -46,7 +46,6 @@ 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();