Network: fixed mixed up AddUnder() arguments.
* BOutlineListView is the worst of the interface kit.
This commit is contained in:
@@ -351,7 +351,7 @@ NetworkWindow::_ScanAddOns()
|
|||||||
|
|
||||||
fSettingsMap[item->ListItem()] = item;
|
fSettingsMap[item->ListItem()] = item;
|
||||||
// TODO: sort
|
// TODO: sort
|
||||||
fListView->AddUnder(interfaceItem, item->ListItem());
|
fListView->AddUnder(item->ListItem(), interfaceItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -364,8 +364,8 @@ NetworkWindow::_ScanAddOns()
|
|||||||
|
|
||||||
fSettingsMap[item->ListItem()] = item;
|
fSettingsMap[item->ListItem()] = item;
|
||||||
// TODO: sort
|
// TODO: sort
|
||||||
fListView->AddUnder(_ListItemFor(item->Type()),
|
fListView->AddUnder(item->ListItem(),
|
||||||
item->ListItem());
|
_ListItemFor(item->Type()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -414,7 +414,7 @@ NetworkWindow::_ListItemFor(BNetworkSettingsType type)
|
|||||||
void
|
void
|
||||||
NetworkWindow::_SelectItem(BListItem* listItem)
|
NetworkWindow::_SelectItem(BListItem* listItem)
|
||||||
{
|
{
|
||||||
if (fAddOnShellView->CountChildren() > 0)
|
while (fAddOnShellView->CountChildren() > 0)
|
||||||
fAddOnShellView->ChildAt(0)->RemoveSelf();
|
fAddOnShellView->ChildAt(0)->RemoveSelf();
|
||||||
|
|
||||||
BView* nextView = NULL;
|
BView* nextView = NULL;
|
||||||
@@ -433,9 +433,6 @@ NetworkWindow::_SelectItem(BListItem* listItem)
|
|||||||
|
|
||||||
if (nextView != NULL)
|
if (nextView != NULL)
|
||||||
fAddOnShellView->AddChild(nextView);
|
fAddOnShellView->AddChild(nextView);
|
||||||
|
|
||||||
fAddOnShellView->Invalidate();
|
|
||||||
InvalidateLayout();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user