fix #153691: drumtools palette not closing when switching between files

follow up acd86d5c50
This commit is contained in:
anatoly-os 2018-05-18 11:46:02 +02:00
parent 929eee6b25
commit f440917ef5

View file

@ -3239,8 +3239,10 @@ void MuseScore::changeState(ScoreState val)
if (_sstate == STATE_FOTO)
updateInspector();
if (_sstate != STATE_NOTE_ENTRY_STAFF_DRUM)
showDrumTools(0, 0);
//always hide drumtools to support hiding on switching docs, switching node entry mode off, etc.
//it will be shown later if (_sstate == STATE_NOTE_ENTRY_STAFF_DRUM)
showDrumTools(0, 0);
switch (val) {
case STATE_DISABLED: