summaryrefslogtreecommitdiffstats
path: root/kopete
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-08-25 04:14:27 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-08-25 04:14:27 +0200
commite11825984f38bfdb98698aee17916e618761fcc9 (patch)
tree6d73a2476b6fce6b475f5a216aa16e9619cb5899 /kopete
parentd573a253c1ba45b5e56f7bc25c8242f797a204e4 (diff)
downloadtdenetwork-e11825984f38bfdb98698aee17916e618761fcc9.tar.gz
tdenetwork-e11825984f38bfdb98698aee17916e618761fcc9.zip
Do not confirm closing kopete group chat when account is offline
Diffstat (limited to 'kopete')
-rw-r--r--kopete/kopete/chatwindow/chatview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kopete/kopete/chatwindow/chatview.cpp b/kopete/kopete/chatwindow/chatview.cpp
index 4f356690..52ed7fb7 100644
--- a/kopete/kopete/chatwindow/chatview.cpp
+++ b/kopete/kopete/chatwindow/chatview.cpp
@@ -347,7 +347,8 @@ bool ChatView::closeView( bool force )
if ( !force )
{
- if ( m_manager->members().count() > 1 )
+ if ( m_manager->members().count() > 1 &&
+ m_manager->account()->isConnected() )
{
TQString shortCaption = d->captionText;
shortCaption = KStringHandler::rsqueeze( shortCaption );