aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2023-03-06 05:42:59 +0100
committerTim Jenssen <tim.jenssen@qt.io>2023-03-06 04:46:49 +0000
commitef6ab90d1c0de436fbdb79dc6fbea2791bf91da4 (patch)
treec10f4183c494c0152e1c56bb67cd04d6f8cfdee5 /src/app
parentb619f24396ab5d446f39d2d53904829254c19a80 (diff)
crashpad: add sha to sentry annotations
Change-Id: I7142da6d8fc61643512ff2ae6f581bf6795ab802 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index d1cfc7136a..d338c14c01 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -466,6 +466,9 @@ bool startCrashpad(const QString &libexecPath, bool crashReportingEnabled)
std::map<std::string, std::string> 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<std::string> arguments;