From c5b6b0c4fc411b14fe5a201612cab2d443040f7e Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Thu, 19 May 2022 18:16:30 -0700 Subject: [PATCH] crashhandler: fix symbol issue --- app/crashhandler/crashhandler.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/crashhandler/crashhandler.cpp b/app/crashhandler/crashhandler.cpp index e71cbf04a..eac036c27 100644 --- a/app/crashhandler/crashhandler.cpp +++ b/app/crashhandler/crashhandler.cpp @@ -113,12 +113,12 @@ QString CrashHandlerDialog::GetSymbolPath() QDir app_path(qApp->applicationDirPath()); QString symbols_path; -#if defined(OS_WIN) +#if BUILDFLAG(IS_WIN) symbols_path = app_path.filePath(QStringLiteral("symbols")); -#elif defined(OS_LINUX) +#elif BUILDFLAG(IS_LINUX) app_path.cdUp(); symbols_path = app_path.filePath(QStringLiteral("share/olive-editor/symbols")); -#elif defined(OS_APPLE) +#elif BUILDFLAG(IS_APPLE) app_path.cdUp(); symbols_path = app_path.filePath(QStringLiteral("Resources/symbols")); #endif @@ -242,9 +242,9 @@ void CrashHandlerDialog::SendErrorReport() QDir symbol_dir(GetSymbolPath()); QString symbol_bin_name; -#if defined(OS_WIN) +#if BUILDFLAG(IS_WIN) symbol_bin_name = QStringLiteral("olive-editor.pdb"); -#elif defined(OS_APPLE) +#elif BUILDFLAG(IS_APPLE) symbol_bin_name = QStringLiteral("Olive"); #else symbol_bin_name = QStringLiteral("olive-editor"); @@ -270,7 +270,7 @@ void CrashHandlerDialog::SendErrorReport() // Create sym section QString symbol_filename; -#if defined(OS_APPLE) +#if BUILDFLAG(IS_APPLE) symbol_filename = QStringLiteral("Olive.sym"); #else symbol_filename = QStringLiteral("olive-editor.sym");