From a179d5d6967c204d5973fff2839a517175671b5b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 27 Dec 2013 17:33:48 -0600 Subject: Fix crash in mount/umount operations when using pmount Remove unneeded hack in dirlister for media device root directory --- tdeio/tdeio/kdirlister.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'tdeio/tdeio/kdirlister.cpp') diff --git a/tdeio/tdeio/kdirlister.cpp b/tdeio/tdeio/kdirlister.cpp index 1bf9ac78c..bae304f74 100644 --- a/tdeio/tdeio/kdirlister.cpp +++ b/tdeio/tdeio/kdirlister.cpp @@ -90,17 +90,6 @@ KDirListerCache::~KDirListerCache() bool KDirListerCache::listDir( KDirLister *lister, const KURL& _u, bool _keep, bool _reload ) { - // HACK - // The media:/ tdeioslave has massive problems related to not properly updating its root directory - // Therefore, force a reload every time the media:/ tdeioslave root is accessed! - // FIXME - // For anyone wanting to tackle this problem, it was traced into the KDirListerCache::updateDirectory TDEIO::listDir TDEIO job - // Specifically, slotUpdateResult is never called for the root directory *iff* the user descends into an unmounted media device - // Strangely, slotUpdateResult *is* called if the user instead right-clicks on the unmounted media device and selects Mount from the context menu - if ((_u.protocol() == "media") && (_u.path() == "/")) { - _reload = true; - } - // like this we don't have to worry about trailing slashes any further KURL _url = _u; _url.cleanPath(); // kill consecutive slashes -- cgit v1.2.3