FIX: conditions for ClearEditor

This fixes selection of conditions for cleaning
NB: if there is selected part only its branch will be deleted, otherwise
all parts