[pim/libgravatar] src/job: Fix logic == vs !=

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 1c301254102adc123196b33d82ae001814af7033 by Laurent Montel.
Committed on 17/08/2026 at 11:57.
Pushed by mlaurent into branch 'master'.

Fix logic == vs !=

M  +1    -1    src/job/gravatarresolvurljob.cpp

https://invent.kde.org/pim/libgravatar/-/commit/1c301254102adc123196b33d82ae001814af7033

diff --git a/src/job/gravatarresolvurljob.cpp b/src/job/gravatarresolvurljob.cpp
index d17ffe5..09e4f18 100644
--- a/src/job/gravatarresolvurljob.cpp
+++ b/src/job/gravatarresolvurljob.cpp
@@ -138,7 +138,7 @@ void GravatarResolvUrlJob::slotFinishLoadPixmap(QNetworkReply *reply)
             GravatarCache::self()->saveGravatarPixmap(d->mCalculatedHash, d->mPixmap);
         }
     } else {
-        if (reply->error() != QNetworkReply::ContentNotFoundError) {
+        if (reply->error() == QNetworkReply::ContentNotFoundError) {
             GravatarCache::self()->saveMissingGravatar(d->mCalculatedHash);
         } else {
             qCDebug(GRAVATAR_LOG) << "Network error:" << reply->request().url() << reply->errorString();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.