File patch.patch of Package baloo-widgets

diff -urN baloo-widgets-23.04.2-orig/src/filemetadataprovider.cpp baloo-widgets-23.04.2/src/filemetadataprovider.cpp
--- baloo-widgets-23.04.2-orig/src/filemetadataprovider.cpp	2023-06-03 03:33:52.000000000 +0900
+++ baloo-widgets-23.04.2/src/filemetadataprovider.cpp	2023-06-13 22:14:05.705850522 +0900
@@ -129,7 +129,7 @@
 
         const auto width = m_data.value(QStringLiteral("width"));
         const auto height = m_data.value(QStringLiteral("height"));
-        if ((width.type() == QVariant::Double || width.type() == QVariant::Int) && (height.type() == QVariant::Double || height.type() == QVariant::Int)) {
+        if (!width.isNull() && !height.isNull()) {
             m_data.insert(QStringLiteral("dimensions"), i18nc("width × height", "%1 × %2", width.toInt(), height.toInt()));
         }
 
openSUSE Build Service is sponsored by