From 2d185dfe02f722b77034a45b72132b819afe871f Mon Sep 17 00:00:00 2001 From: Kevin Zander Date: Sat, 10 Feb 2024 21:02:58 -0600 Subject: [PATCH] Fix deletion of mixer channels when calling MixerView::clear (#7081) * Fix deletion of mixer channels when calling MixerView::clear * clear channel 0 + delete from back to front --- src/gui/MixerView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/MixerView.cpp b/src/gui/MixerView.cpp index 93b4e1299..224ea2c85 100644 --- a/src/gui/MixerView.cpp +++ b/src/gui/MixerView.cpp @@ -590,7 +590,8 @@ void MixerView::setCurrentMixerChannel(int channel) void MixerView::clear() { - getMixer()->clear(); + for (auto i = m_mixerChannelViews.size() - 1; i > 0; --i) { deleteChannel(i); } + getMixer()->clearChannel(0); refreshDisplay(); }