mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 00:29:41 +02:00
1678: Cursor to track start/end misbehaves when no tracks selected
Problem: With no tracks selected, the commands cursor to track start/end set the cursor position to a silly high value or undefined respectively. Simple fix: Set the flags on the commands to TracksSelectedFlag, as they were before the menus were reorganised. Note that after this fix, with tracks present, but none selected, these commands cause a disallowed dialog to open, saying that there was a problem with the last action. I don't know if this behaviour is now expected.
This commit is contained in:
parent
76ea923975
commit
f0702fb54b
@ -866,8 +866,10 @@ void AudacityProject::CreateMenusAndCommands()
|
||||
c->AddItem(wxT("CursSelStart"), _("Selection Star&t"), FN(OnCursorSelStart));
|
||||
c->AddItem(wxT("CursSelEnd"), _("Selection En&d"), FN(OnCursorSelEnd));
|
||||
|
||||
c->AddItem(wxT("CursTrackStart"), _("Track &Start"), FN(OnCursorTrackStart), wxT("J"));
|
||||
c->AddItem(wxT("CursTrackEnd"), _("Track &End"), FN(OnCursorTrackEnd), wxT("K"));
|
||||
c->AddItem(wxT("CursTrackStart"), _("Track &Start"), FN(OnCursorTrackStart), wxT("J"),
|
||||
TracksSelectedFlag, TracksSelectedFlag);
|
||||
c->AddItem(wxT("CursTrackEnd"), _("Track &End"), FN(OnCursorTrackEnd), wxT("K"),
|
||||
TracksSelectedFlag, TracksSelectedFlag);
|
||||
|
||||
c->AddItem(wxT("CursPrevClipBoundary"), _("Pre&vious Clip Boundary"), FN(OnCursorPrevClipBoundary), wxT(""),
|
||||
TrackPanelHasFocus | WaveTracksExistFlag, TrackPanelHasFocus | WaveTracksExistFlag);
|
||||
|
Loading…
x
Reference in New Issue
Block a user