Review Request: Add versioning check for thumbnailers.

Peter Penz peter.penz at gmx.at
Thu Nov 26 16:53:58 GMT 2009



> On 2009-11-25 19:35:42, Christoph Feck wrote:
> > trunk/KDE/kdelibs/kio/kio/previewjob.cpp, line 433
> > <http://reviewboard.kde.org/r/2282/diff/1/?file=15105#file15105line433>
> >
> >     Versions are no floating point numbers, e.g. version 1.30 is "better" than 1.5.

I agree to Christophs comment. But in general I'd like to raise the question, whether it makes sense to check for v1 < v2? Wouldn't it be correct to just check for equality? I mean: as soon as the thumbnailer generator version does not match to the version of the thumbnails, the thumbnails must be recreated IMO. There is no need for providing some kind of backward compatibility between thumbnailer versions. Do I miss something here? By this the code would get a lot more straight forward...


- Peter


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2282/#review3277
-----------------------------------------------------------


On 2009-11-25 19:17:00, Jacopo De Simoi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/2282/
> -----------------------------------------------------------
> 
> (Updated 2009-11-25 19:17:00)
> 
> 
> Review request for kdelibs, Peter Penz, David Nolden, and David Faure.
> 
> 
> Summary
> -------
> 
> Adds versioning check for thumbnailers; the code checks if a ThumbnailerVersion is defined and if so, checks that the software field in the existing thumbnail matches before using the cached thumbnail. 
> 
> This fixes caching bugs with the improved jpeg thumbnailer.
> 
> 
> Diffs
> -----
> 
>   trunk/KDE/kdelibs/kio/kio/previewjob.cpp 1038240 
> 
> Diff: http://reviewboard.kde.org/r/2282/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Jacopo
> 
>





More information about the kde-core-devel mailing list