From 0024c37c62baa3fb88b51e3b6aba48ec776c603c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 21 Sep 2015 09:09:03 +0100 Subject: [PATCH] Fix crash reported on OS X, although the actual cause is not entirely clear. --- src/wx/audio_dialog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc index ebe803258..814dc596f 100644 --- a/src/wx/audio_dialog.cc +++ b/src/wx/audio_dialog.cc @@ -217,7 +217,7 @@ AudioDialog::content_changed (int p) if (p == AudioContentProperty::AUDIO_STREAMS) { try_to_load_analysis (); } else if (p == AudioContentProperty::AUDIO_GAIN) { - if (_playlist->content().size() == 1) { + if (_playlist->content().size() == 1 && _analysis) { /* We can use a short-cut to render the effect of this change, rather than recalculating everything. */ -- 2.30.2