HaikuDepot: Fix a few issues pointed out by Stephan. Thanks!
This commit is contained in:
@@ -518,7 +518,8 @@ PackageInfo::operator==(const PackageInfo& other) const
|
|||||||
&& fChangelog == other.fChangelog
|
&& fChangelog == other.fChangelog
|
||||||
&& fCategories == other.fCategories
|
&& fCategories == other.fCategories
|
||||||
&& fUserRatings == other.fUserRatings
|
&& fUserRatings == other.fUserRatings
|
||||||
&& fScreenshots == other.fScreenshots;
|
&& fScreenshots == other.fScreenshots
|
||||||
|
&& fState == other.fState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ static const char* skPackageStateActive = B_TRANSLATE_MARK("Active");
|
|||||||
static const char* skPackageStateInactive = B_TRANSLATE_MARK("Inactive");
|
static const char* skPackageStateInactive = B_TRANSLATE_MARK("Inactive");
|
||||||
|
|
||||||
|
|
||||||
inline BString PackageStateToString(PackageState state)
|
inline BString
|
||||||
|
package_state_to_string(PackageState state)
|
||||||
{
|
{
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case NONE:
|
case NONE:
|
||||||
@@ -474,7 +475,7 @@ PackageRow::PackageRow(const PackageInfoRef& packageRef,
|
|||||||
|
|
||||||
// Status
|
// Status
|
||||||
// TODO: Fetch info about installed/deactivated/uninstalled/...
|
// TODO: Fetch info about installed/deactivated/uninstalled/...
|
||||||
SetField(new BStringField(PackageStateToString(package.State())),
|
SetField(new BStringField(package_state_to_string(package.State())),
|
||||||
kStatusColumn);
|
kStatusColumn);
|
||||||
|
|
||||||
package.AddListener(fPackageListener);
|
package.AddListener(fPackageListener);
|
||||||
|
|||||||
Reference in New Issue
Block a user