diff options
Diffstat (limited to 'Swift/Controllers/Chat/ChatControllerBase.cpp')
| -rw-r--r-- | Swift/Controllers/Chat/ChatControllerBase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/Chat/ChatControllerBase.cpp b/Swift/Controllers/Chat/ChatControllerBase.cpp index 0fc735a..19bbf8d 100644 --- a/Swift/Controllers/Chat/ChatControllerBase.cpp +++ b/Swift/Controllers/Chat/ChatControllerBase.cpp | |||
| @@ -58,6 +58,9 @@ void ChatControllerBase::handleContinuationsBroken() { | |||
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | ChatWindow* ChatControllerBase::detachChatWindow() { | 60 | ChatWindow* ChatControllerBase::detachChatWindow() { |
| 61 | chatWindow_->onContinuationsBroken.disconnect(boost::bind(&ChatControllerBase::handleContinuationsBroken, this)); | ||
| 62 | chatWindow_->onSendMessageRequest.disconnect(boost::bind(&ChatControllerBase::handleSendMessageRequest, this, _1, _2)); | ||
| 63 | chatWindow_->onAllMessagesRead.disconnect(boost::bind(&ChatControllerBase::handleAllMessagesRead, this)); | ||
| 61 | ChatWindow* chatWindow = chatWindow_; | 64 | ChatWindow* chatWindow = chatWindow_; |
| 62 | chatWindow_ = nullptr; | 65 | chatWindow_ = nullptr; |
| 63 | return chatWindow; | 66 | return chatWindow; |
Swift