Update tab icon when profile icon is changed

wilder-portage
Mariusz Glebocki 7 years ago committed by Kurt Hindenburg
parent 1fb00df308
commit ac1d3a1a0d
  1. 9
      src/ViewContainer.cpp

@ -563,8 +563,13 @@ void TabbedViewContainer::updateTitle(ViewProperties *item)
void TabbedViewContainer::updateIcon(ViewProperties *item)
{
auto controller = qobject_cast<SessionController*>(item);
const int index = indexOf(controller->view());
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);
setTabIcon(index, item->icon());
}

Loading…
Cancel
Save