#11676: [HaikuDepot] deselects current package on install/uninstall ---------------------------------------+---------------------------- Reporter: diver | Owner: stippi Type: bug | 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): I changed it so the selection is preserved at all a few days ago. When a package is installed or deinstalled, this triggers a refresh of all pacakges. That in turn frees the previous PackageInfos and creates new ones. Due to the new code which tries to preserve selection, the previously selected package is not found anymore and I guess that's causing the package to disappear. Before, there was no code trying to maintain the selection and due to reference counting, the PackageInfoView was holding on to an old package info. That would also explain why the icon was not changing before the recent changes. I am just logging this, so I don't have to think about it again when looking at this ticket later. -- Ticket URL: <https://dev.haiku-os.org/ticket/11676#comment:2> Haiku <https://dev.haiku-os.org> Haiku - the operating system.