this patch fixes #3614985.
Also the checked item's row was not selected when filtering.
It also does the right thing regarding dependencies: if they are not required anymore by a plugin selected by the user they are unchecked.
Before, they were kept checked.
Stylistic change: renames parents to dependents for added clarity.