aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/projectnodes.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2018-01-19 11:55:28 +0100
committerTobias Hunger <tobias.hunger@qt.io>2018-01-22 11:51:47 +0000
commit034f0209b01c3c774995e790c099bf7e422953e6 (patch)
tree19dfc99885fdb0e83e87ea3ca6379cf7c8be274e /src/plugins/projectexplorer/projectnodes.h
parentcf94a15379ad72d0892c76bbdeff1a117e49cf31 (diff)
ProjectTree: Fix crash working with resources
Fix the notification of subtree changes to keep the project in the loop, so that it can adjust its list of known files. Ignoring that will cause crashes, e.g. when the ResourceEditor updates its subtree of the project. Task-number: QTCREATORBUG-19613 Change-Id: Ib7bb9afe48eb248cdf675ba2093b266fd728d7b2 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectnodes.h')
-rw-r--r--src/plugins/projectexplorer/projectnodes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/projectnodes.h b/src/plugins/projectexplorer/projectnodes.h
index ddd828ee97..34ad086a18 100644
--- a/src/plugins/projectexplorer/projectnodes.h
+++ b/src/plugins/projectexplorer/projectnodes.h
@@ -294,6 +294,8 @@ public:
const FolderNode *asFolderNode() const override { return this; }
protected:
+ virtual void handleSubTreeChanged(FolderNode *node);
+
QList<Node *> m_nodes;
QList<LocationInfo> m_locations;
@@ -361,6 +363,8 @@ public:
void removeAllChildren();
private:
+ void handleSubTreeChanged(FolderNode *node) final;
+
Project *m_project;
};