From da16a9289414991b0dfa68b9979d9f744a2ebdff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 26 Sep 2015 01:45:40 +0200 Subject: [PATCH] Model: Pull changelogs from the package infos --- src/apps/haikudepot/model/Model.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/apps/haikudepot/model/Model.cpp b/src/apps/haikudepot/model/Model.cpp index 5ad94c68a0a..289e5e97ee0 100644 --- a/src/apps/haikudepot/model/Model.cpp +++ b/src/apps/haikudepot/model/Model.cpp @@ -1189,6 +1189,13 @@ Model::_PopulatePackageInfo(const PackageInfoRef& package, const BMessage& data) append_word_list(foundInfo, "prominence"); } + + BString changelog; + if (data.FindString("pkgChangelogContent", &changelog) == B_OK) { + package->SetChangelog(changelog); + + append_word_list(foundInfo, "changelog"); + } BMessage screenshots; if (data.FindMessage("pkgScreenshots", &screenshots) == B_OK) {