D8811: [knewstuff] Do not leak ImageLoader on error
Dan Leinir Turthra Jensen
noreply at phabricator.kde.org
Wed Nov 15 12:47:16 UTC 2017
leinir added inline comments.
INLINE COMMENTS
> engine.cpp:536
> + connect(l, &ImageLoader::signalError, this, [this, l](const KNSCore::EntryInternal &entry, EntryInternal::PreviewType type) {
> + qCDebug(KNEWSTUFFCORE) << "ERROR preview: " << entry.name() << type;
> + --m_numPictureJobs;
You did add l to the capture, but unless i'm missing something super obvious... you're not using it ;) i meant to do something like add `<< l->job()->errorText()` to the debug statement so we can see what the job says has gone wrong (which arguably is the more useful information here)...
Maybe also emit a signalError with an appropriate text (because that's how to tell the user about errors)... though i'm not entirely certain if we might not want to just fail quietly here.
REPOSITORY
R304 KNewStuff
REVISION DETAIL
https://phabricator.kde.org/D8811
To: anthonyfieroni, leinir, dfaure
Cc: broulik, #frameworks, ZrenBot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171115/c34b0198/attachment.html>
More information about the Kde-frameworks-devel
mailing list