<div dir="ltr"><div>Forgot to add the path diff file, sorry.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 23, 2019 at 2:53 PM Petr Velan <<a href="mailto:petr.velan@gmail.com">petr.velan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello Konsole devs,</div><div><br></div><div>I'm using Konsole daily and I encountered the bug described in <a href="https://bugs.kde.org/show_bug.cgi?id=406828" target="_blank">https://bugs.kde.org/show_bug.cgi?id=406828</a></div><div><br></div><div>This is really annoying for me, so I've decided to have a look at the cause. It seems pretty straightforward to fix, so I'm attaching a git diff of the change here. If there is a better place for me to send the fix, please let me know. <br></div><div><br></div><div>Thank you,</div><div>Petr Velan<br></div><div><br></div><div><br></div><div>diff --git a/src/ViewContainer.cpp b/src/ViewContainer.cpp<br>index 81157301..5002c977 100644<br>--- a/src/ViewContainer.cpp<br>+++ b/src/ViewContainer.cpp<br>@@ -543,7 +543,9 @@ void TabbedViewContainer::setTabActivity(int index, bool activity)<br> void TabbedViewContainer::updateActivity(ViewProperties *item)<br> {<br>     auto controller = qobject_cast<SessionController*>(item);<br>-    auto index = indexOf(controller->view());<br>+    auto topLevelSplitter = qobject_cast<ViewSplitter*>(controller->view()->parentWidget())->getToplevelSplitter();<br>+<br>+    const int index = indexOf(topLevelSplitter);<br>     if (index != currentIndex()) {<br>         setTabActivity(index, true);<br>     }<br></div></div>
</blockquote></div>