Bugfix

This bug was driving me nuts, so I fixed it. :)

Bug description:
 - The UI hanged every time I entered edit mode (clicking the "N" icon or pressing the "N" key).

The cause was an endless loop in the method "selectedNote()" in "libmscore/chord.cpp".
If you take a look at the patch the cause should be pretty clear.

Hope it helps!