musescore/MuseScore — pull request #131 by AntonioBL (2012-11-22 10:31:10+00:00)
Title: #12918 Double bar + key sig change + break + delete break removes the double bar

This is a quick fix that avoids the creation of the double bar at a courtesy key sig. By doing so, the barline which was already present at the key sig change is preserved, and thus it is kept when the courtesy key sig is no more needed (when the key change no more happens at the beginning of a line). See http://musescore.org/en/node/12918
I just commented the code line instead of deleting it.