fix: use right name for the content of a News entry
This commit is contained in:
parent
03e454b71d
commit
4e319254dd
@ -54,7 +54,7 @@ inline QString childValue(const QDomElement& element, const QString& childName,
|
|||||||
bool NewsEntry::fromXmlElement(const QDomElement& element, NewsEntry* entry, QString* errorMsg)
|
bool NewsEntry::fromXmlElement(const QDomElement& element, NewsEntry* entry, QString* errorMsg)
|
||||||
{
|
{
|
||||||
QString title = childValue(element, "title", tr("Untitled"));
|
QString title = childValue(element, "title", tr("Untitled"));
|
||||||
QString content = childValue(element, "description", tr("No content."));
|
QString content = childValue(element, "content", tr("No content."));
|
||||||
QString link = childValue(element, "id");
|
QString link = childValue(element, "id");
|
||||||
|
|
||||||
entry->title = title;
|
entry->title = title;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user