From ea01c74d50c2ef9f96a8aea6cf9bdf30f3c7156d Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 2 Dec 2022 14:15:22 +0100 Subject: [PATCH] Squish: Ensure using correct case while debugging Especially on non-casesensitive OS we may get the information regarding break point locations with a wrong case which would try to set a break point and silently fail as the files are internally used with their correct case. Change-Id: I32a780629e1b10ea075d669b8eca812fbd994600 Reviewed-by: David Schulz --- src/plugins/squish/squishtools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/squish/squishtools.cpp b/src/plugins/squish/squishtools.cpp index 4a33d45cf3a..a788ce2810e 100644 --- a/src/plugins/squish/squishtools.cpp +++ b/src/plugins/squish/squishtools.cpp @@ -1021,7 +1021,7 @@ Utils::Links SquishTools::setBreakpoints() continue; const Utils::FilePath filePath = Utils::FilePath::fromString( gb->data(BreakpointFileColumn, Qt::DisplayRole).toString()); - auto fileName = filePath.toUserOutput(); + auto fileName = filePath.canonicalPath().toUserOutput(); if (fileName.isEmpty()) continue; if (!fileName.endsWith(extension))