[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdelibs/kio/kio
From:       David Faure <faure () kde ! org>
Date:       2010-12-03 14:48:43
Message-ID: 201012031548.44145.faure () kde ! org
[Download RAW message or body]

On Thursday 02 December 2010, Peter Penz wrote:
> SVN commit 1202948 by ppenz:
> 
> Fix issue that previews are not shown in the trash. The root cause is that
> KUrl::isLocalFile() for the trash returns false (which is correct
> corresponding to the documentation of isLocalFile()) and hence the maximum
> size for remote files is used (which is 0 per default). From a users point
> of view the trash should be considered as "local" and hence the maximum
> size for local files should be considered for previews.
> BUG: 257928

Yep, makes sense.

However there are more protocols than trash:/, which are "local files viewed
differenty", and in fact there's a generic way of testing for this: KProtocolInfo::protocolClass.

This would become:

if (itemUrl.isLocalFile() || KProtocolInfo::protocolClass(itemUrl.protocol()) == ":local")


-- 
David Faure, faure@kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic