fix #273080 - Visible mixer with no score leads to instant crash on startup

This commit is contained in:
Dag Henning Liodden Sørbø 2018-06-05 20:19:35 +02:00
parent c7fa7c6fc6
commit c6fa1ea1f7

View file

@ -390,6 +390,9 @@ void Mixer::midiPrefsChanged(bool showMidiControls)
void MuseScore::showMixer(bool val)
{
if (!cs)
return;
QAction* a = getAction("toggle-mixer");
if (mixer == 0) {
mixer = new Mixer(this);