[pim/messagelib] messagecore/src/attachment: Use job->error() directly

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 09b61d432e7f9b347c4b232a2877b3186c7f835a by Laurent Montel.
Committed on 15/08/2026 at 06:10.
Pushed by mlaurent into branch 'master'.

Use job->error() directly

M  +1    -1    messagecore/src/attachment/attachmentupdatejob.cpp

https://invent.kde.org/pim/messagelib/-/commit/09b61d432e7f9b347c4b232a2877b3186c7f835a

diff --git a/messagecore/src/attachment/attachmentupdatejob.cpp b/messagecore/src/attachment/attachmentupdatejob.cpp
index 11921f1c6..572c7695e 100644
--- a/messagecore/src/attachment/attachmentupdatejob.cpp
+++ b/messagecore/src/attachment/attachmentupdatejob.cpp
@@ -51,7 +51,7 @@ void AttachmentUpdateJob::AttachmentUpdateJobPrivate::doStart()
 void AttachmentUpdateJob::AttachmentUpdateJobPrivate::loadJobResult(KJob *job)
 {
     if (job->error()) {
-        q->setError(KJob::UserDefinedError);
+        q->setError(job->error());
         q->setErrorText(job->errorString());
         q->emitResult();
         return;
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.