Avogadro2 locks up when I use the selection tool or the drawing tool to delete some atoms in a pdb file. I see that this was an (old) issue in Avogadro1 that was addressed. Indeed when I try this in Avogadro1 there is no problem using either tool to delete atoms from the same file.
Sorry I wasn’t more clear. Avogadro2 simply stopped responding as evidenced by the spinning cursor and the status in Activity Monitor. This was with either the current version or the nightly build (from a week or two ago). This is on MacOS Sequoia fully up to date. Example pdb file attached.
This set of patches should do it. I fixed the PDB example, then found another bug when trying to delete atoms from ORCA files. (Seems unlikely, but finally found the underlying bug.)