From cea02697b41a9d99edd2c6f6c8248b0bd1b1e08a Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Thu, 19 Sep 2013 14:56:29 +0200 Subject: [PATCH] HaikuDepot: Fix a few issues pointed out by Stephan. Thanks! --- src/apps/haiku-depot/PackageInfo.cpp | 3 ++- src/apps/haiku-depot/PackageListView.cpp | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/apps/haiku-depot/PackageInfo.cpp b/src/apps/haiku-depot/PackageInfo.cpp index c200f12632..2d8cbe72c5 100644 --- a/src/apps/haiku-depot/PackageInfo.cpp +++ b/src/apps/haiku-depot/PackageInfo.cpp @@ -518,7 +518,8 @@ PackageInfo::operator==(const PackageInfo& other) const && fChangelog == other.fChangelog && fCategories == other.fCategories && fUserRatings == other.fUserRatings - && fScreenshots == other.fScreenshots; + && fScreenshots == other.fScreenshots + && fState == other.fState; } diff --git a/src/apps/haiku-depot/PackageListView.cpp b/src/apps/haiku-depot/PackageListView.cpp index 1d693a18e7..348b50191a 100644 --- a/src/apps/haiku-depot/PackageListView.cpp +++ b/src/apps/haiku-depot/PackageListView.cpp @@ -24,7 +24,8 @@ static const char* skPackageStateActive = B_TRANSLATE_MARK("Active"); static const char* skPackageStateInactive = B_TRANSLATE_MARK("Inactive"); -inline BString PackageStateToString(PackageState state) +inline BString +package_state_to_string(PackageState state) { switch (state) { case NONE: @@ -474,7 +475,7 @@ PackageRow::PackageRow(const PackageInfoRef& packageRef, // Status // TODO: Fetch info about installed/deactivated/uninstalled/... - SetField(new BStringField(PackageStateToString(package.State())), + SetField(new BStringField(package_state_to_string(package.State())), kStatusColumn); package.AddListener(fPackageListener);