diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-05-30 14:01:51 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-05-30 12:42:16 +0000 |
commit | ea0d3f9ac515ce41b308436d36bbb7c2bc6c40ec (patch) | |
tree | f37fe3859cf618b45a746d21ea9c0e088a34fbdb /src/plugins/projectexplorer/projecttree.h | |
parent | 2b2b06a6d3090144394c4a4294cd21d5185a26a4 (diff) |
ProjectExplorer: Delete all the widgets when deleting the project tree
Leaving them around is dangerous as they rely on the tree to be valid.
When unloading the plugin the ProjectTree instance is deleted.
Change-Id: Iea6524b0c57c469045cb35f3cd2f376e579b8a57
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projecttree.h')
-rw-r--r-- | src/plugins/projectexplorer/projecttree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/projecttree.h b/src/plugins/projectexplorer/projecttree.h index 2a48995893..cd1ec25ef8 100644 --- a/src/plugins/projectexplorer/projecttree.h +++ b/src/plugins/projectexplorer/projecttree.h @@ -44,6 +44,7 @@ class PROJECTEXPLORER_EXPORT ProjectTree : public QObject Q_OBJECT public: explicit ProjectTree(QObject *parent = nullptr); + ~ProjectTree(); static ProjectTree *instance(); |