|
|
|
|
@ -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()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|