Debugger: Compare files case sensitive depending on OS.

Task-number: QTCREATORBUG-14461
Change-Id: I6e63643754197e300dbc90c9208458e5d69beaf6
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
David Schulz
2015-05-21 12:49:02 +02:00
parent 661c68fffe
commit 0218abf1d0

View File

@@ -678,9 +678,8 @@ DebuggerToolTipContext::DebuggerToolTipContext()
static bool filesMatch(const QString &file1, const QString &file2)
{
QFileInfo f1(file1);
QFileInfo f2(file2);
return f1.canonicalFilePath() == f2.canonicalFilePath();
return FileName::fromString(QFileInfo(file1).canonicalFilePath())
== FileName::fromString(QFileInfo(file2).canonicalFilePath());
}
bool DebuggerToolTipContext::matchesFrame(const StackFrame &frame) const