summaryrefslogtreecommitdiffstats
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:27:15 +0200
commitfdb127fe09efd83e750f0bc8aeaf47efb75d6c88 (patch)
treef82177a4836845ff7a52fa3f72c604f6347a1cdb
parent735cab429b6ca7f1fe217c17f33cfbec52aade65 (diff)
downloadtdenetwork-fdb127fe09efd83e750f0bc8aeaf47efb75d6c88.tar.gz
tdenetwork-fdb127fe09efd83e750f0bc8aeaf47efb75d6c88.zip
Do not confirm closing kopete group chat when account is offline
(cherry picked from commit e11825984f38bfdb98698aee17916e618761fcc9)
-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 1b27e97e..d4944e0f 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 );