mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 00:20:06 +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:
parent
758bd1ac2a
commit
1d570ee182
@ -8274,15 +8274,22 @@ void TrackPanel::OnTrackMenu(Track *t)
|
|||||||
theMenu->Enable(OnSplitStereoMonoID, t->GetLinked());
|
theMenu->Enable(OnSplitStereoMonoID, t->GetLinked());
|
||||||
|
|
||||||
// We only need to set check marks. Clearing checks causes problems on Linux (bug 851)
|
// 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()) {
|
switch (t->GetChannel()) {
|
||||||
case Track::LeftChannel:
|
case Track::LeftChannel:
|
||||||
theMenu->Check(OnChannelLeftID, true);
|
theMenu->Check(OnChannelLeftID, true);
|
||||||
|
theMenu->Check(OnChannelRightID, false);
|
||||||
|
theMenu->Check(OnChannelMonoID, false);
|
||||||
break;
|
break;
|
||||||
case Track::RightChannel:
|
case Track::RightChannel:
|
||||||
theMenu->Check(OnChannelRightID, true);
|
theMenu->Check(OnChannelRightID, true);
|
||||||
|
theMenu->Check(OnChannelLeftID, false);
|
||||||
|
theMenu->Check(OnChannelMonoID, false);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
theMenu->Check(OnChannelMonoID, true);
|
theMenu->Check(OnChannelMonoID, true);
|
||||||
|
theMenu->Check(OnChannelLeftID, false);
|
||||||
|
theMenu->Check(OnChannelRightID, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
theMenu->Enable(OnChannelMonoID, !t->GetLinked());
|
theMenu->Enable(OnChannelMonoID, !t->GetLinked());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user