HaikuDepot: Added RemovePackage() method...
... to PackagedListView.
This commit is contained in:
parent
18b941b46c
commit
15eb4c43c9
@ -758,6 +758,20 @@ PackageListView::AddPackage(const PackageInfoRef& package)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PackageListView::RemovePackage(const PackageInfoRef& package)
|
||||
{
|
||||
PackageRow* packageRow = _FindRow(package);
|
||||
if (packageRow == NULL)
|
||||
return;
|
||||
|
||||
RemoveRow(packageRow);
|
||||
delete packageRow;
|
||||
|
||||
fItemCountView->SetItemCount(CountRows());
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PackageListView::SelectPackage(const PackageInfoRef& package)
|
||||
{
|
||||
|
@ -31,6 +31,7 @@ public:
|
||||
|
||||
virtual void Clear();
|
||||
void AddPackage(const PackageInfoRef& package);
|
||||
void RemovePackage(const PackageInfoRef& package);
|
||||
|
||||
void SelectPackage(const PackageInfoRef& package);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user