From cc7e316a03051c41e0ad114b9b21d33faea38a69 Mon Sep 17 00:00:00 2001 From: Markus Redeker Date: Tue, 25 Mar 2025 11:47:05 +0100 Subject: [PATCH] Coco Plugin bug fix: Wrong path to CoverageScanner under macOS When manually setting the Coco directory on the plugin settings page, the plugin automatically verifies the directory by checking that it contains the CoverageBrowser at the expected place. With the wrong relative path, checking always failed. Change-Id: I46d2127d6b2a7d2e1afc15963f1604694d6461cb Reviewed-by: Markus Redeker Reviewed-by: David Schulz --- src/plugins/coco/globalsettings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/coco/globalsettings.cpp b/src/plugins/coco/globalsettings.cpp index 56d0f660569..f703d241aeb 100644 --- a/src/plugins/coco/globalsettings.cpp +++ b/src/plugins/coco/globalsettings.cpp @@ -52,8 +52,10 @@ FilePath CocoSettings::coverageBrowserPath() const { QString browserPath; - if (HostOsInfo::isAnyUnixHost() || HostOsInfo::isMacHost()) + if (HostOsInfo::isAnyUnixHost()) browserPath = "bin/coveragebrowser"; + else if (HostOsInfo::isMacHost()) + browserPath = "coveragebrowser"; else browserPath = "coveragebrowser.exe";