Deselect spline actor from C++

I have an actor with spline component contructed inside. When I select any point on spline, i cant deselect from C++.

i trying by this way, not working. the scene selected actor dont deselect:

GEditor->SelectNone(true, true);

this code stay in OnConstruction and every time i change some property, it executes