summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/subscription.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2018-06-01 15:13:51 +0200
committerTobias Hunger <tobias.hunger@qt.io>2018-06-13 10:09:23 +0000
commit34b205ed22e1a06f6fa2da0a6ecee60b592dfb3d (patch)
tree7447a553d255e470ea9348ac294ad2429126fa7e /src/plugins/projectexplorer/subscription.h
parent9b43b55dc0ac4457d05da0c422854754addc2aa9 (diff)
downloadqt-creator-34b205ed22e1a06f6fa2da0a6ecee60b592dfb3d.tar.gz
ProjectExplorer: Fix some corner cases in signal subscriptions
Handle cases where targets/projects are removed and then added again. This is currently not done anywhere, but there should not be nasty surprises when somebody decides to do that later. Change-Id: I47f9b4a1577f2021bcee87ccdd5435e3628b2a95 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/subscription.h')
-rw-r--r--src/plugins/projectexplorer/subscription.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/subscription.h b/src/plugins/projectexplorer/subscription.h
index 819a11d1f1..71aa3596f3 100644
--- a/src/plugins/projectexplorer/subscription.h
+++ b/src/plugins/projectexplorer/subscription.h
@@ -57,6 +57,8 @@ protected:
void connectTo(ProjectConfiguration *pc);
void disconnectFrom(ProjectConfiguration *pc);
+ void destroy();
+
Connector m_subscriber;
QHash<ProjectConfiguration *, QMetaObject::Connection> m_connections;
};