diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/Signal.hh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/FbTk/Signal.hh b/src/FbTk/Signal.hh index a7b91ba..0148a17 100644 --- a/src/FbTk/Signal.hh +++ b/src/FbTk/Signal.hh | |||
@@ -216,14 +216,13 @@ public: | |||
216 | 216 | ||
217 | /// Leave tracking for a signal | 217 | /// Leave tracking for a signal |
218 | /// @param id the \c id from the previous \c join | 218 | /// @param id the \c id from the previous \c join |
219 | void leave(TrackID id, bool withTracker = false) { | 219 | void leave(TrackID id) { |
220 | // keep temporary, while disconnecting we can | 220 | // keep temporary, while disconnecting we can |
221 | // in some strange cases get a call to this again | 221 | // in some strange cases get a call to this again |
222 | ValueType tmp = *id; | 222 | ValueType tmp = *id; |
223 | m_connections.erase(id); | 223 | m_connections.erase(id); |
224 | tmp.first->disconnect(tmp.second); | 224 | tmp.first->disconnect(tmp.second); |
225 | if (withTracker) | 225 | tmp.first->disconnectTracker(*this); |
226 | tmp.first->disconnectTracker(*this); | ||
227 | } | 226 | } |
228 | 227 | ||
229 | /// Leave tracking for a signal | 228 | /// Leave tracking for a signal |
@@ -240,7 +239,7 @@ public: | |||
240 | void leaveAll() { | 239 | void leaveAll() { |
241 | // disconnect all connections | 240 | // disconnect all connections |
242 | for ( ; !m_connections.empty(); ) { | 241 | for ( ; !m_connections.empty(); ) { |
243 | leave(m_connections.begin(), true); | 242 | leave(m_connections.begin()); |
244 | } | 243 | } |
245 | } | 244 | } |
246 | 245 | ||