Update tab title only when new title comes from active split

wilder-portage
Mariusz Glebocki 6 years ago committed by Kurt Hindenburg
parent e2385f73e5
commit 0d594fef08
  1. 4
      src/ViewContainer.cpp

@ -550,7 +550,9 @@ void TabbedViewContainer::updateTitle(ViewProperties *item)
{
auto controller = qobject_cast<SessionController*>(item);
auto topLevelSplitter = qobject_cast<ViewSplitter*>(controller->view()->parentWidget())->getToplevelSplitter();
if (controller->view() != topLevelSplitter->activeTerminalDisplay()) {
return;
}
const int index = indexOf(topLevelSplitter);
QString tabText = item->title();

Loading…
Cancel
Save