D26407: KFileItem: improve isSlow to never block, make SkipMimeTypeFromContent skip only network fs

Anthony Fieroni noreply at phabricator.kde.org
Sat Jan 4 06:50:16 GMT 2020


anthonyfieroni added inline comments.

INLINE COMMENTS

> kfileitem.cpp:782
>          if (!path.isEmpty()) {
> -            const KFileSystemType::Type fsType = KFileSystemType::fileSystemType(path);
> -            m_slow = (fsType == KFileSystemType::Nfs || fsType == KFileSystemType::Smb) ? Slow : Fast;
> +            const auto &mountPoints = KMountPoint::currentMountPoints();
> +            auto mp = mountPoints.findByPath(path);

I think you wanna use `getMountPoints`

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D26407

To: meven, #frameworks, ngraham, broulik, dfaure
Cc: anthonyfieroni, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200104/ca081303/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list