diff options
author | Eike Ziller <[email protected]> | 2014-06-12 13:33:51 +0200 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2014-06-12 14:33:34 +0200 |
commit | 1fda462500d3bd64e044c83520957463feba933e (patch) | |
tree | d3f922edc8e150d81dedb8fad4de2f9553c1b7f2 /src/plugins/debugger/breakhandler.cpp | |
parent | de32c0fc4f94e0d7f68daf096af07a30317cafe5 (diff) |
Avoid explicit checks for windows host when working with file paths
We have fileNameCaseSensitivity and withExecutableSuffix et al.
Change-Id: I79bd2cd57e258c3f15673a661a49bab597d7afa4
Reviewed-by: Daniel Teske <[email protected]>
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r-- | src/plugins/debugger/breakhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index 66897cba855..bdeff938c2d 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -181,7 +181,7 @@ QIcon BreakHandler::emptyIcon() static inline bool fileNameMatch(const QString &f1, const QString &f2) { - if (Utils::HostOsInfo::isWindowsHost()) + if (Utils::HostOsInfo::fileNameCaseSensitivity() == Qt::CaseInsensitive) return f1.compare(f2, Qt::CaseInsensitive) == 0; return f1 == f2; } |