https://bugs.kde.org/show_bug.cgi?id=412944

--- Comment #3 from Frédéric COIFFIER <frederic.coiff...@free.fr> ---
Thank you Gilles,

I agree that a change like below could be better (up to 2.100.0 ;-) :

diff --git a/core/dplugins/generic/webservices/piwigo/piwigotalker.cpp
b/core/dplugins/generic/webservices/piwigo/piwigotalker.cpp
index 8b75674ddd..eeb915bac0 100644
--- a/core/dplugins/generic/webservices/piwigo/piwigotalker.cpp
+++ b/core/dplugins/generic/webservices/piwigo/piwigotalker.cpp
@@ -506,7 +506,7 @@ void PiwigoTalker::parseResponseGetVersion(const
QByteArray& data)
                 if (verrx.exactMatch(v))
                 {
                     QStringList qsl = verrx.capturedTexts();
-                    d->version       = qsl[1].toInt() * 10 + qsl[2].toInt();
+                    d->version       = qsl[1].toInt() * 100 + qsl[2].toInt();
                     qCDebug(DIGIKAM_WEBSERVICES_LOG) << "Version: " <<
d->version;
                     break;
                 }
diff --git a/core/dplugins/generic/webservices/piwigo/piwigotalker.h
b/core/dplugins/generic/webservices/piwigo/piwigotalker.h
index 739cf2096e..14e751a920 100644
--- a/core/dplugins/generic/webservices/piwigo/piwigotalker.h
+++ b/core/dplugins/generic/webservices/piwigo/piwigotalker.h
@@ -73,7 +73,7 @@ public:
     enum
     {
         CHUNK_MAX_SIZE = 512*1024,
-        PIWIGO_VER_2_4 = 24
+        PIWIGO_VER_2_4 = 204
     };

 public:

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to