forked from qt-creator/qt-creator
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 <daniel.teske@digia.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user