OSDN Git Service

gwenview: remove now redundant KExiv2Property checks
authorIvailo Monev <xakepa10@gmail.com>
Fri, 7 Jul 2023 20:39:34 +0000 (23:39 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Fri, 7 Jul 2023 20:39:34 +0000 (23:39 +0300)
see 3521d07234beab1822bc7e30f5bdf451a5cebc3c in kdelibs repo

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
gwenview/lib/imagemetainfomodel.cpp

index 5b64674..05e7a65 100644 (file)
@@ -277,15 +277,6 @@ void ImageMetaInfoModel::setUrl(const KUrl& url)
     KExiv2PropertyList iptcprops;
     KExiv2PropertyList xmpprops;
     foreach (const KExiv2Property &kexiv2property, kexiv2.metadata()) {
-        // there is vendor specific metadata that is not supposed to be user-visible
-        if (kexiv2property.value.isEmpty() || kexiv2property.label.isEmpty()) {
-            kDebug() << "Empty value or label, skipping" << kexiv2property.name;
-            continue;
-        } else if (kexiv2property.label.startsWith("0x")) {
-            kDebug() << "Hex label, skipping" << kexiv2property.name;
-            continue;
-        }
-
         if (kexiv2property.name.startsWith("Exif.")) {
             exifprops.append(kexiv2property);
         } else if (kexiv2property.name.startsWith("Xmp.")) {