Commit ac1d3a1a authored by Mariusz Glebocki's avatar Mariusz Glebocki Committed by Kurt Hindenburg
Browse files

Update tab icon when profile icon is changed

parent 1fb00df3
...@@ -563,8 +563,13 @@ void TabbedViewContainer::updateTitle(ViewProperties *item) ...@@ -563,8 +563,13 @@ void TabbedViewContainer::updateTitle(ViewProperties *item)
void TabbedViewContainer::updateIcon(ViewProperties *item) void TabbedViewContainer::updateIcon(ViewProperties *item)
{ {
auto controller = qobject_cast<SessionController*>(item); auto controller = qobject_cast<SessionController *>(item);
const int index = indexOf(controller->view()); auto topLevelSplitter = qobject_cast<ViewSplitter*>(controller->view()->parentWidget())->getToplevelSplitter();
if (controller->view() != topLevelSplitter->activeTerminalDisplay()) {
return;
}
const int index = indexOf(topLevelSplitter);
setTabIcon(index, item->icon()); setTabIcon(index, item->icon());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment