forked from qt-creator/qt-creator
Debugger: Fix source mapping on Windows
Path separators should be translated to '/'.
That's probably was the intention for originally using QDir::cleanPath(),
which was removed in b7c72f8621.
Change-Id: Id7fdbc1e430b7d52da1bd7406fcfd777326bf593
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
c96e44825d
commit
bc9c6e23ca
@@ -145,7 +145,8 @@ bool SourcePathMappingModel::isNewPlaceHolder(const Mapping &m) const
|
|||||||
// Return raw, unfixed mapping
|
// Return raw, unfixed mapping
|
||||||
Mapping SourcePathMappingModel::rawMappingAt(int row) const
|
Mapping SourcePathMappingModel::rawMappingAt(int row) const
|
||||||
{
|
{
|
||||||
return Mapping(item(row, SourceColumn)->text(), item(row, TargetColumn)->text());
|
return Mapping(QDir::fromNativeSeparators(item(row, SourceColumn)->text()),
|
||||||
|
QDir::fromNativeSeparators(item(row, TargetColumn)->text()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return mapping, empty if it is the place holder.
|
// Return mapping, empty if it is the place holder.
|
||||||
|
|||||||
Reference in New Issue
Block a user