Under some (unknown) circumstances, the window title is incorrect, ie, it does not reflect the current directory.
Navigating to another directory does not correct the situation by updating the title. The only way to get Dolphin to sync the title with the current directory is to restart Dolphin.
There isn't enough information in this bug to investigate it. Can you put together a reproducible test case that gets Dolphin into this state?
As I said in the bug report, I have not yet been able to discern when this freeze occurs. If/when I do, I will report back.
I have indeed found a reproducible case that works with Dolphin 17.12.3:
1. Open up Dolphin & toggle split view
2. Navigate to some random directory in the left panel
3. Close split view (the window title should now update to show the folder of the right panel)
4. Navigate to some random directory
The window title equals the random directory I am currently in.
The window title stays the way it was at the end of 3., even if you e.g. toggle the search bar.
The only way how to get the "correct" title back is to toggle split view on and off again.
Can anyone else confirm this bug after following these steps?
Been playing around with this. I might know what's going on but wanted you guys to check my thinking and, if I'm right, maybe come up with a better solution?
Through the connections set up in createViewContainer(), m_primaryViewContainer->setActive(true), at line 98, ends up triggering slotViewActivated().
Because m_primaryViewActive is true, oldActiveView is not set to the view needed in this particular situation. Both oldActiveView and newActiveView end up pointing to the same view and the connections are not set up.
m_primaryViewActive = false;
inside the if clause at line 93 seems to fix it?
Thanks for investigating, Robert! Please feel free to submit a patch! We have very good documentation on this:
I'd be happy to help if you need a hand.
*** Bug 349287 has been marked as a duplicate of this bug. ***
Git commit 74c2d4ea2d256183dc1f869a78ee5b1b79888330 by Elvis Angelaccio.
Committed on 25/04/2018 at 10:34.
Pushed by elvisangelaccio into branch 'Applications/18.04'.
Add failing test case for bug #385111
Will be fixed by D12446.
M +44 -0 src/tests/dolphinmainwindowtest.cpp
Fixed by https://commits.kde.org/dolphin/78c8b36dd84a94916835d702ea4a9e8eda65e8ef
I am still seeing this behavior in Version 19.03.70.
Can you provide a screenshot?