diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index dd161efd42d..a0f94e4f2ee 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -1019,7 +1019,7 @@ static QString trimmedFileName(const FilePath &fullPath) const Project *project = ProjectTree::currentProject(); const FilePath projectDirectory = project ? project->projectDirectory() : FilePath(); if (projectDirectory.exists()) - return FilePath::calcRelativePath(fullPath.path(), projectDirectory.toUserOutput()); + return fullPath.relativePathFrom(projectDirectory).toUserOutput(); return fullPath.toUserOutput(); }