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 <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2022-12-02 14:15:22 +01:00
parent e620299fda
commit ea01c74d50

View File

@@ -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))