diff --git a/app/dialog/crashhandler/crashhandler.cpp b/app/dialog/crashhandler/crashhandler.cpp index 197d23f99..af03bfab3 100644 --- a/app/dialog/crashhandler/crashhandler.cpp +++ b/app/dialog/crashhandler/crashhandler.cpp @@ -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)); }