From 0218abf1d07234fc484484de9ff31f46745f81a8 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 21 May 2015 12:49:02 +0200 Subject: [PATCH] Debugger: Compare files case sensitive depending on OS. Task-number: QTCREATORBUG-14461 Change-Id: I6e63643754197e300dbc90c9208458e5d69beaf6 Reviewed-by: hjk Reviewed-by: Christian Stenger --- src/plugins/debugger/debuggertooltipmanager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/debugger/debuggertooltipmanager.cpp b/src/plugins/debugger/debuggertooltipmanager.cpp index 2cdb3417246..996a15ce0aa 100644 --- a/src/plugins/debugger/debuggertooltipmanager.cpp +++ b/src/plugins/debugger/debuggertooltipmanager.cpp @@ -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