diff options
author | Cristian Adam <cristian.adam@qt.io> | 2024-05-08 13:49:13 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2024-05-08 15:16:15 +0000 |
commit | 1fb5b5422151fe3b0018f5688828e9597a5feebe (patch) | |
tree | bead62440ff10f90ca970a138dfaedf0009066f3 /src/libs | |
parent | 668e82429970898be494a855ad5fa085054e101b (diff) |
PE: Fix ProjectTreeWidget::expandedCount not to use 0 for error cases
This would make ProjectTreeWidget::nodeForFile pick the wrong node due
to nodeExpandCount having a lower count.
In case of qml files there is the source file node and the resource file
node pointing to the same file name, but the resource name has an invalid
index (not visible in the project view) and shouldn't be preffered!
Fixes: QTCREATORBUG-30571
Change-Id: I2aff7da9dd6d83222e341b5cbcb78db5cd6a9224
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/libs')
0 files changed, 0 insertions, 0 deletions