From c6fa1ea1f7c6f2c5d3253bf6834f01f11cf5ae6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag=20Henning=20Liodden=20S=C3=B8rb=C3=B8?= Date: Tue, 5 Jun 2018 20:19:35 +0200 Subject: [PATCH] fix #273080 - Visible mixer with no score leads to instant crash on startup --- mscore/mixer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mscore/mixer.cpp b/mscore/mixer.cpp index 5ac2f2f742..cad35ff67e 100644 --- a/mscore/mixer.cpp +++ b/mscore/mixer.cpp @@ -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);