summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/audio_dialog.cc2
1 files changed, 1 insertions, 1 deletions
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.
*/