Comment 80 for bug 1890791

Revision history for this message
In , Meven-q (meven-q) wrote :

(In reply to Méven Car from comment #70)
> (In reply to b2 from comment #69)
> > And just for clarity. I've probably did it differently the last time. IIRC I
> > just used to download files through FF, which is how I first noticed it.
> > I've probably also closed Dolphin through alt-F4, but none of this seems to
> > matter--I can reproduce it either way.
>
> Thank you very much for your help I can reproduce it locally actually thanks
> to your video presenting the issue and how the tabs are important.

I know understand the bug origin, triggered in your scenario.

It is about how dolphin watches directories for changes. When we open directories in dolphin, we add inotify watches and when folders are closed their watch is removed. This is all fine until you add split views and tabs. When a new view (DolphinView + KFileItemModel + KCoreDirLister) opens, they usually open the previous url before opening the new url, so they remove the watch of the previous opened directory except they don't take into account that another view might still need the watch.
This can happen in a number of ways.

The bad news is that it will need quite some refactoring to fix, but it can be done(tm).