Commit 11138e54 authored by Laurent Montel's avatar Laurent Montel 😁

Better to keep warning

parent 83d6068b
......@@ -23,7 +23,7 @@
#include <QUrl>
#include <QList>
#include "libdiscover_debug.h"
#include <QDebug>
#include <AppStreamQt/image.h>
#include <AppStreamQt/component.h>
#include <AppStreamQt/release.h>
......@@ -64,8 +64,8 @@ static QPair<QList<QUrl>, QList<QUrl>> fetchScreenshots(const AppStream::Compone
const auto images = s.images();
const QUrl thumbnail = AppStreamUtils::imageOfKind(images, AppStream::Image::KindThumbnail);
const QUrl plain = AppStreamUtils::imageOfKind(images, AppStream::Image::KindSource);
// if (plain.isEmpty())
// qCWarning(LIBDISCOVER_LOG) << "invalid screenshot for" << appdata.name();
if (plain.isEmpty())
qWarning() << "invalid screenshot for" << appdata.name();
screenshots << plain;
thumbnails << (thumbnail.isEmpty() ? plain : thumbnail);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment