Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.6.0-beta1
-
None
-
Kubuntu Artful (17.10) x86_64, Qt 5.10.0 (qmake 3.1), gcc 7.2.0
Description
The method was introduced in commit 43f57d3f31117c7677d23f1477a4579b1b562c67, ending with the following return statement:
return (it == end) ? false : (*it)->filePath() != filename;
I believe this is incorrect, since we are looking for a match. In other words the statement should be as follows:
return (it == end) ? false : (*it)->filePath() == filename;
This mistake also causes ProjectExplorer::SessionManager::projectForFile() to work incorrectly (i.e. now it returns the first project from the list which actually does not contain the file).
Attachments
Issue Links
- relates to
-
QTCREATORBUG-19519 [REG 4.5 -> 4.6] "Go to slot" does not work
- Closed
For Gerrit Dashboard: QTCREATORBUG-19554 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
216003,1 | Fix Project::isKnownFile | master | qt-creator/qt-creator | Status: ABANDONED | 0 | 0 |