Thank you for testing, I knew it cannot be that simple. I really wanted to fix it at the root, as there is already another piece of code that clears the selection and restores it after an action.
I will give myself one more day to think about an alternative solution. If I cannot come up with one then I will apply either yours or the other patch. I do not want to keep eeschema in a state when it crashes so easily for too long.
Thank you for testing, I knew it cannot be that simple. I really wanted to fix it at the root, as there is already another piece of code that clears the selection and restores it after an action.
I will give myself one more day to think about an alternative solution. If I cannot come up with one then I will apply either yours or the other patch. I do not want to keep eeschema in a state when it crashes so easily for too long.