Sorry again... the bug deleting components or closing the circuit document is still there...
I just uncomented the lines in electronicconnector.cpp in the wrong folder...