diff --git a/src/plugins/coreplugin/editormanager/documentmodel.cpp b/src/plugins/coreplugin/editormanager/documentmodel.cpp index 64c20e370d05b378e1e189e5f3e159111d972bc6..4fb99ae9a5b3873a56c66cccd9630ce1f3de56f0 100644 --- a/src/plugins/coreplugin/editormanager/documentmodel.cpp +++ b/src/plugins/coreplugin/editormanager/documentmodel.cpp @@ -31,6 +31,7 @@ #include <utils/algorithm.h> #include <utils/dropsupport.h> +#include <utils/hostosinfo.h> #include <utils/qtcassert.h> #include <QAbstractItemModel> @@ -323,7 +324,7 @@ bool DocumentModelPrivate::disambiguateDisplayNames(DocumentModel::Entry *entry) } for (int j = i + 1; j < dupsCount; ++j) { DynamicEntry &e2 = dups[j]; - if (e->displayName() == e2->displayName()) { + if (e->displayName().compare(e2->displayName(), Utils::HostOsInfo::fileNameCaseSensitivity()) == 0) { const Utils::FileName otherFileName = e2->document->filePath(); if (otherFileName.isEmpty()) continue;