forked from qt-creator/qt-creator
C++: handle case-insensitive file names in the CPlusPlus::Snapshot
... by keying on Utils::FileName Task-number: QTCREATORBUG-12390 Change-Id: Ia98afb5a9160a7fd9225a2f9e02539ff3c35ae86 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
a8ece5e9b0
commit
a48adcf9be
@@ -528,11 +528,10 @@ bool QtCreatorIntegration::navigateToSlot(const QString &objectName,
|
||||
Snapshot newDocTable;
|
||||
const Project *uiProject = SessionManager::projectForFile(currentUiFile);
|
||||
if (uiProject) {
|
||||
Snapshot::const_iterator end = docTable.end();
|
||||
for (Snapshot::iterator it = docTable.begin(); it != end; ++it) {
|
||||
const Project *project = SessionManager::projectForFile(it.key());
|
||||
for (Snapshot::const_iterator i = docTable.begin(), ei = docTable.end(); i != ei; ++i) {
|
||||
const Project *project = SessionManager::projectForFile(i.key().toString());
|
||||
if (project == uiProject)
|
||||
newDocTable.insert(it.value());
|
||||
newDocTable.insert(i.value());
|
||||
}
|
||||
} else {
|
||||
const CppTools::WorkingCopy workingCopy =
|
||||
|
||||
Reference in New Issue
Block a user