[trunk] Clicking on Piano Keyboard with no score causes crash

• Jun 15, 2011 - 04:03
Type
Functional
Severity
S2 - Critical
Status
closed
Project

1. Start MuseScore empty.
2. Open Piano keyboard.
3. Click on the keyboard.

Result: Crash.

Using MuseScore 2.0 Nightly Build (4367) - Mac 10.6.7.


Comments

Title [Trunk] [Mac] Clicking on Piano Keyboard with no score causes crash [Trunk] Clicking on Piano Keyboard with no score causes crash

Affects Windows if you have it open before closing a score.

Using MuseScore 2.0 Nightly Build (4408) - Windows XP SP3.

Partially fixed (doesn't allow it to open if you have an empty score). However (like #2), it you have a score open, enable Piano Keyboard, close the score and click on the keyboard (still there), it'll crash.

(Piano Keyboard also lacks the capitalised first letters)

Using MuseScore 2.0 Nightly Build (4483) - Mac 10.6.8.

Title [Trunk] Clicking on Piano Keyboard with no score causes crash [trunk] Clicking on Piano Keyboard with no score causes crash
Status (old) patch (ready to commit) patch (code needs review)

I applied the patch from mokaspar. In addition the piano is removed if there is no score to get consistent behaviour with the drum tools.