From bd16087d1caa014a9448dcb45feb6841429ed0d6 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Sun, 13 Apr 2008 18:49:28 +0000 Subject: [PATCH] Display an asterisk at the end of the tab title if input is being copied to other sessions. svn path=/trunk/KDE/kdebase/apps/konsole/; revision=796547 --- src/SessionController.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/SessionController.cpp b/src/SessionController.cpp index 18c0ac509..a1164b569 100644 --- a/src/SessionController.cpp +++ b/src/SessionController.cpp @@ -234,8 +234,14 @@ void SessionController::snapshot() else delete snapshot; + title = title.simplified(); + + // crude indicator when the session is broadcasting to others + if (_copyToGroup && _copyToGroup->sessions().count() > 1) + title.append('*'); + // apply new title - if ( !title.simplified().isEmpty() ) + if ( !title.isEmpty() ) _session->setTitle(Session::DisplayedTitleRole,title); else _session->setTitle(Session::DisplayedTitleRole,_session->title(Session::NameRole)); @@ -749,6 +755,8 @@ void SessionController::copyInputTo() else if (!newGroup.contains(session) && currentGroup.contains(session)) _copyToGroup->removeSession(session); } + + snapshot(); } delete dialog;