I use the “bar settings” command (F5) and introduce a new key in some bars of a song through the “key signature change to”. If after that I change the main key of the song, those specific bars remain in the same key than before (the same number flats and sharps). That is not rigth!!

So, please, I think that from a software point of view, the “key signature change to” field, has to be absolutely related to the main key, so if you change the main key (transported in a value of x), automaticly the “key signature change to” field value changes too (transported in a value of x too).

An example:

I have a song in the key of F with a key change to D at bar 16.

So I put the song in key F (main key) and go to the "bar settings" command (F5) and introduce in bar 16 a "key signature change" to D, as it is in the original sheet. I look at the sheet an everything is OK: 1 flat in F key and 2 sharps at bar 16, key of D.

But now I decide to transpose the song one tone up: to the key of G. So I go to the main key and just change the main key from F to G. Now I look at the sheet and I see that the flat in the key becomes a sharp at the beginning, OK, but at bar 16 the two sharps remain the same.
That is not correct, it would show 4 sharps, indicating that we are now in the key of E!!.

Thanks,
Javier