diff --git a/src/ViewContainer.cpp b/src/ViewContainer.cpp --- a/src/ViewContainer.cpp +++ b/src/ViewContainer.cpp @@ -543,7 +543,9 @@ void TabbedViewContainer::updateActivity(ViewProperties *item) { auto controller = qobject_cast(item); - auto index = indexOf(controller->view()); + auto topLevelSplitter = qobject_cast(controller->view()->parentWidget())->getToplevelSplitter(); + + const int index = indexOf(topLevelSplitter); if (index != currentIndex()) { setTabActivity(index, true); }