HaikuDepot: Make sure to pick up changed package action labels

This commit is contained in:
Stephan Aßmus
2014-10-26 23:37:09 +01:00
parent 35afac0769
commit ad5bc044c5
+8 -1
View File
@@ -671,8 +671,15 @@ public:
}
fPackageActions = actions;
if (!clearNeeded)
if (!clearNeeded) {
int32 index = 0;
for (int32 i = fPackageActions.CountItems() - 1; i >= 0; i--) {
const PackageActionRef& action = fPackageActions.ItemAtFast(i);
BButton* button = (BButton*)fButtons.ItemAtFast(index++);
button->SetLabel(action->Label());
}
return;
}
Clear();