summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppfilesettingspage.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-06-14 15:11:57 +0200
committerhjk <hjk@qt.io>2019-06-14 14:01:31 +0000
commite3690ad7ac6d749c8a489676163864f5abbf99d7 (patch)
tree41ac36934e99b690920a69147fba970e4d782f36 /src/plugins/cpptools/cppfilesettingspage.cpp
parentb9924e2b4b3544ea494925576a421cd9a5fce94f (diff)
downloadqt-creator-e3690ad7ac6d749c8a489676163864f5abbf99d7.tar.gz
ProjectTree: Fix crash when project has no rootProjectNode
Fix a crash that is triggered by a project returning to a state where it has no rootProjectNode. This can happen when parsing fails and Creator should fall back to displaying the project name and its main project file as it does before any parsing had been done. Unfortunately the hasNode function returned false in this case, so the project model was never updated and the removed project nodes stuck around, triggering a crash. Change-Id: I7616e576773dc52fb6fdff39b9f0a7c7729eac71 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppfilesettingspage.cpp')
0 files changed, 0 insertions, 0 deletions