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 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 );