summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 );