1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 23:59:37 +02:00

Fix for track menu channel radio items on linux.

Steve suggested and tested this fix. Probably bug in wxWidgets.
This commit is contained in:
David Bailes 2015-10-30 16:10:33 +00:00
parent 758bd1ac2a
commit 1d570ee182

View File

@ -8274,15 +8274,22 @@ void TrackPanel::OnTrackMenu(Track *t)
theMenu->Enable(OnSplitStereoMonoID, t->GetLinked());
// We only need to set check marks. Clearing checks causes problems on Linux (bug 851)
// + Setting unchecked items to false is to get round a linux bug
switch (t->GetChannel()) {
case Track::LeftChannel:
theMenu->Check(OnChannelLeftID, true);
theMenu->Check(OnChannelRightID, false);
theMenu->Check(OnChannelMonoID, false);
break;
case Track::RightChannel:
theMenu->Check(OnChannelRightID, true);
theMenu->Check(OnChannelLeftID, false);
theMenu->Check(OnChannelMonoID, false);
break;
default:
theMenu->Check(OnChannelMonoID, true);
theMenu->Check(OnChannelLeftID, false);
theMenu->Check(OnChannelRightID, false);
}
theMenu->Enable(OnChannelMonoID, !t->GetLinked());