#11563: HaikuDepot should have an advanced tab while opening package files directly ---------------------------------------+---------------------------- Reporter: kallisti5 | Owner: stippi Type: enhancement | Status: new Priority: normal | Milestone: R1 Component: Applications/HaikuDepot | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ---------------------------------------+---------------------------- Comment (by stippi): Hi TigerKid001: I saw your code, thanks for working on this. You seem to be having some misconceptions about how pointers work and/or how some of the BColumnListView API works. When you ask the list, whether it already contains an item, the list searches the exact pointer. When you create a new BListItem instance with "new", the list cannot have a pointer to that newly created item. To find the parent item, you need to find the item manually from the list. But this seems expensive. It would be much more efficient, if you remember the parent list item for as long as you encounter entries with the same parent entry. In any case, what you see in the list view is a direct result of never finding any parent item (because you are doing it wrongly) and all entries are added to the top level of the list. If you need more help than that, I can probably find the time to rewrite that function. But for that, I would like a patch with the complete code, so I can test my changes more easily. -- Ticket URL: <https://dev.haiku-os.org/ticket/11563#comment:8> Haiku <https://dev.haiku-os.org> Haiku - the operating system.