From cd317ed49a68de99c467b467dd4737bbbca1d354 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Mon, 6 Mar 2023 05:42:59 +0100 Subject: [PATCH] crashpad: add sha to sentry annotations Change-Id: I7142da6d8fc61643512ff2ae6f581bf6795ab802 Reviewed-by: Tim Jenssen (cherry picked from commit ef6ab90d1c0de436fbdb79dc6fbea2791bf91da4) --- src/app/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index 025d219d2ee..d84eae4274c 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -466,6 +466,9 @@ bool startCrashpad(const QString &libexecPath, bool crashReportingEnabled) std::map annotations; annotations["app-version"] = Core::Constants::IDE_VERSION_DISPLAY; annotations["qt-version"] = QT_VERSION_STR; +#ifdef IDE_REVISION + annotations["sha1"] = Core::Constants::IDE_REVISION_STR; +#endif // Optional arguments to pass to the handler std::vector arguments;