musescore/MuseScore — pull request #1306 by MarcSabatella (2014-09-12 17:34:39+00:00)
Title: fix #31571: key sig for new transposing instrument

This PR fixes the listed issue without changing anything else about the management of key signatures. Which is to say, it leaves a mess in the case of scores in "C". Sometimes there will be initial "C" key signatures, sometimes there will not, depending on what you do and the order you do it in.

I figure, let's fix this bug now - the code should be good regardless of what we do later (at worst, it will turn out to be a little unnecessary insurance.