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
This commit is contained in:
Kevin Zander
2024-02-10 21:02:58 -06:00
committed by GitHub
parent dd53bec311
commit 2d185dfe02

View File

@@ -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();
}