Version: (using Devel)
Installed from: Compiled sources
How to reproduce.
Mount a resource/device present in the Places panel (a disk partition, for example). Select the device by clicking on it. Content is showed correctly in the files view. RMB the device, and click "Unmount". Device is unmounted, files view shows no content, mounted emblem is remove. Everything ok. Now, click again on the device entry in the place panel. Device is mounted (emblem is showed) but no content present in the files view. You have to press F5 to get the content showed correctly.
SVN commit 818005 by ppenz:
Fixed the following Information Panel issues:
* Trash icon is not updated when trash has been emptied or got filled.
* When renaming an item the old name will be shown in the Information Panel.
* When unmounting media, still the mounted icon is shown.
M +65 -3 infosidebarpage.cpp
M +6 -0 infosidebarpage.h
WebSVN link: http://websvn.kde.org/?view=rev&revision=818005
I'm sorry but the bug is still present as of today's SVN.
> I'm sorry but the bug is still present as of today's SVN.
Ah, my fault: The SVN commit fixed only the Information Panel stuff.
peter, any news about this bug? It still happens in KDE 4.1.0
Sorry, no news yet. There are currently 153 open bugs and and 135 open wish reports, so it might take a while... But I did not forget about this issue :-)
*** Bug 191520 has been marked as a duplicate of this bug. ***
*** Bug 223342 has been marked as a duplicate of this bug. ***
*** Bug 158932 has been marked as a duplicate of this bug. ***
Any update on this one, Peter?
This problem is also present in the kde open dialog.
So I think the best way to fix this would probably be in the KDirModel. Though
I am not sure on that.
Essentially as it looks to me the main problem is that the KDirWatcher -- or
what it is called -- gets removed on unmounting, thus it does not recognise
that the directory is recreated/changes later on.
I'm on Gentoo with KDE 4.8.1 on x86 and this bug still exist.
When I unmount and the remount the same USB memory device, dolphin don't show the content until I manually refresh it.
I still see this issue from time to time on KDE 4.8.2
There seems to be no difference between local folders or networks folders.
I did notice this happening when i was extracting files using ark or when extracting something from the command line. Just an observation, it doesn't seem to happen every single time.
Resetting assignee to default as per bug #305719
I can still replicate this issue on Kubuntu with KDE 4.9.2
1. Open dolphin and insert usb stick
2. Click on the removable drive from the places panel, its contents are displayed
3. On the places panel right click on the removable drive and select "Safely remove 'xxx'", Dolphin stays in the same directory and no files are displayed
4. Re-insert the usb, the removable drive appears in the places panel
5. Click on the removable drive, still no files are displayed
I checked the source code and i found that DolphinViewContainer::setUrl(const KUrl& newUrl) checks if the given url is the same with the current url and doesn't call the setLocationUrl (even if it did KUrlNavigator will perform the check in the setLocationUrl method). So the DolphinView::setUrl(const KUrl& url) which loads the directory is never called.
Created attachment 82503 [details]
Thanks for the good step-by-step instructions and the analysis of the code!
Sorry for the very late reply - we just have far too many bug reports (more than 400 new ones were reported since your comment) to give each one the attention it deserves. However, the number of open reports has been decreasing constantly during the last year, thanks to helpful comments like yours which make it easier to find out what the root cause of a bug is (if you know what part of the code to look at, most of the work is done already).
The attached patch fixes the problem for me. I'll test it a bit more, and I'd also appreciate if anyone else who might test it reports any problems with the patch. Thanks.
I tested your patch, but I haven't found any problems so far - A "ship it" from my side.
Git commit 7f8dca1b806efd18fe8ebb9f5cc574a0c0550c88 by Frank Reininghaus.
Committed on 07/10/2013 at 07:17.
Pushed by freininghaus into branch 'KDE/4.11'.
Reload the view if a previously unmounted device is mounted again
The problem was that DolphinViewContainer::setUrl(newUrl) was ignored
if newUrl is equal to the URL which is shown in the view already.
The new approach is to reload the view in that method if it is empty, to
make sure that we do not miss that a previously unmounted device has
Thanks to Grigoriadis Grigoris for analyzing the root cause of this
M +4 -0 dolphin/src/dolphinviewcontainer.cpp