aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Signal.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Signal.hh')
-rw-r--r--src/FbTk/Signal.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/Signal.hh b/src/FbTk/Signal.hh
index b70c501..3c17d1a 100644
--- a/src/FbTk/Signal.hh
+++ b/src/FbTk/Signal.hh
@@ -242,14 +242,14 @@ public:
242 242
243 /// Leave tracking for a signal 243 /// Leave tracking for a signal
244 /// @param id the \c id from the previous \c join 244 /// @param id the \c id from the previous \c join
245 void leave(TrackID id, bool disconnect = false) { 245 void leave(TrackID id, bool withTracker = false) {
246 // keep temporary, while disconnecting we can 246 // keep temporary, while disconnecting we can
247 // in some strange cases get a call to this again 247 // in some strange cases get a call to this again
248 ValueType tmp = *id; 248 ValueType tmp = *id;
249 m_connections.erase(id); 249 m_connections.erase(id);
250 if (disconnect) 250 tmp.first->disconnect(tmp.second);
251 tmp.first->disconnect(tmp.second); 251 if (withTracker)
252 tmp.first->disconnectTracker(*this); 252 tmp.first->disconnectTracker(*this);
253 } 253 }
254 254
255 /// Leave tracking for a signal 255 /// Leave tracking for a signal