From 0d594fef08cf6f232451ded46e8b5dd2ee2e5716 Mon Sep 17 00:00:00 2001 From: Mariusz Glebocki Date: Sat, 23 Nov 2019 23:59:14 +0100 Subject: [PATCH] Update tab title only when new title comes from active split --- src/ViewContainer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ViewContainer.cpp b/src/ViewContainer.cpp index e6ee790d..f3e42725 100644 --- a/src/ViewContainer.cpp +++ b/src/ViewContainer.cpp @@ -550,7 +550,9 @@ void TabbedViewContainer::updateTitle(ViewProperties *item) { auto controller = qobject_cast(item); auto topLevelSplitter = qobject_cast(controller->view()->parentWidget())->getToplevelSplitter(); - + if (controller->view() != topLevelSplitter->activeTerminalDisplay()) { + return; + } const int index = indexOf(topLevelSplitter); QString tabText = item->title();