Commit a69ec23a authored by Dan Leinir Turthra Jensen's avatar Dan Leinir Turthra Jensen 🌈
Browse files

Ensure the KNS resource returns most recently updated for releaseDate

As AbstractResource::releaseDate is supposed to return the most recent
date for a release for the resource, as opposed to the original
release date, document that and make sure KNSResource::releaseDate in
fact returns what's expected of it.

Differential Revision:
parent da7b1977
......@@ -232,5 +232,5 @@ QString KNSResource::executeLabel() const
QDate KNSResource::releaseDate() const
return m_entry.releaseDate();
return m_entry.updateReleaseDate().isNull() ? m_entry.releaseDate() : m_entry.updateReleaseDate();
......@@ -204,6 +204,9 @@ class DISCOVERCOMMON_EXPORT AbstractResource : public QObject
virtual QString executeLabel() const;
virtual QString sourceIcon() const = 0;
* @returns the date of the resource's most recent release
virtual QDate releaseDate() const = 0;
public Q_SLOTS:
Supports Markdown
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