[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Btelepathy-chat-handler=5D_lib=3A_Close_the_channel_?=
From:       Lasse Liehu <lliehu () kolumbus ! fi>
Date:       2011-03-07 16:02:22
Message-ID: 20110307160222.CC154A60B0 () git ! kde ! org
[Download RAW message or body]

Git commit 4674bb29cc1ce4752db7f43cb71d55e0de43dcec by Lasse Liehu.
Committed on 07/03/2011 at 16:54.
Pushed by lliehu into branch 'master'.

Close the channel when the tab is closed
BUG:265483

M  +1    -0    lib/chat-widget.cpp     

http://commits.kde.org/telepathy-chat-handler/4674bb29cc1ce4752db7f43cb71d55e0de43dcec

diff --git a/lib/chat-widget.cpp b/lib/chat-widget.cpp
index 5a8bab3..753de62 100644
--- a/lib/chat-widget.cpp
+++ b/lib/chat-widget.cpp
@@ -195,6 +195,7 @@ ChatWidget::ChatWidget(const Tp::TextChannelPtr & channel, QWidget *parent)
 
 ChatWidget::~ChatWidget()
 {
+    d->channel->requestClose(); // ensure closing; does nothing, if already closed
     delete d;
 }
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic