fixed human error in crash handler

This commit is contained in:
itsmattkc
2021-04-01 16:27:42 +11:00
parent 636daddc61
commit 2d20673fe8
+2 -3
View File
@@ -110,6 +110,7 @@ void CrashHandlerDialog::SetGUIObjectsEnabled(bool e)
QString CrashHandlerDialog::GetSymbolPath()
{
QDir app_path(qApp->applicationDirPath());
QString symbols_path;
#if defined(OS_WIN)
@@ -131,11 +132,9 @@ void CrashHandlerDialog::GenerateReport()
this, &CrashHandlerDialog::ReadProcessFinished);
connect(p, &QProcess::readyReadStandardOutput, this, &CrashHandlerDialog::ReadProcessHasData);
QDir app_path(qApp->applicationDirPath());
QString stackwalk_filename = FileFunctions::GetFormattedExecutableForPlatform(QStringLiteral("minidump_stackwalk"));
QString stackwalk_bin = app_path.filePath(stackwalk_filename);
QString stackwalk_bin = QDir(qApp->applicationDirPath()).filePath(stackwalk_filename);
p->start(stackwalk_bin, {report_filename_, GetSymbolPath()});
crash_report_->setText(QStringLiteral("Trying to run: %1").arg(stackwalk_bin));
}