User code is deleted in 'buttonClicked'


Not sure if it has been reported/mentionned before.

In the Introjucer, when I rename a field through the subcomponents editor (ex. ‘tog_before’ to ‘tog_after’),
The ‘userButtonCode_tog_after’ is cleaned,

So in the code:

void win_connect_component::buttonClicked (Button* buttonThatWasClicked)
else if (buttonThatWasClicked == tog2_auto_connect)
//[UserButtonCode_tog_after] – add your button handler code here…
-> Deleted


…don’t rename the fields? They’re for the Introjucer to use only; it’s for specifying a region of code for the IJ to not mess with!