From 25dfbed3a2deceb48ea2b1a6e36585d21de145cc Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 24 Oct 2015 09:36:13 +0200 Subject: Fix convert to PNG mess Automatically converting a damaged file to PNG and updating the archive is fine as long as we're *in* the archive, but it totally messes things up if we're browsing the file system. So check if the image is in the archive path, and only then consider auto-converting it. Also show a notice in the InfoItem if the file has been converted. --- helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helper.h') diff --git a/helper.h b/helper.h index cdfcd88..434ba0d 100644 --- a/helper.h +++ b/helper.h @@ -48,7 +48,7 @@ namespace Helper { QPixmap preview(const QString &path); QImage snapshot(const QString &path, int where); QVariant picSize(const QString &path); - PicData convertToPng(PicData data); + PicData convertArchivefileToPng(PicData data); class Duration { public: Duration(); -- cgit v1.2.3-70-g09d2