From 55d48519c9132c6d213f2e733bcd806e3b1f05fb Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 11 Oct 2015 08:16:28 +0200 Subject: Change image size calculation Use ImageMagick::Image::ping to determine the size of an image, but only if the file size is < 400kb to prevent the impression of a deadlock. --- delegates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'delegates.cpp') diff --git a/delegates.cpp b/delegates.cpp index 927726c..db4b6b1 100644 --- a/delegates.cpp +++ b/delegates.cpp @@ -81,7 +81,7 @@ QString SizeDelegate::displayText(const QVariant &value, const QLocale &locale) QString DurationDelegate::displayText(const QVariant &value, const QLocale &locale) const{ Q_UNUSED(locale); - if(value.toString().contains("x")){ + if(value.toString().contains("x") || value.toString() == "skipped"){ return value.toString(); } int secs = value.toFloat(); -- cgit v1.2.3-70-g09d2