1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 09:39:42 +02:00

Fix 'Disallowed' message when using up-arrow.

This happened when transcription toolbar had focus, with and without tracks.
This commit is contained in:
James Crook 2017-05-31 23:19:43 +01:00
parent 1c6c608c13
commit c48310c519

View File

@ -1157,6 +1157,12 @@ void CommandManager::TellUserWhyDisallowed( CommandFlag flagsGot, CommandMask fl
// If the only thing wrong was no tracks, we do nothing and don't report a problem
else if( missingFlags == TracksExistFlag )
return;
// Likewise return if it was just no tracks, and track panel did not have focus. (e.g. up-arrow to move track)
else if( missingFlags == (TracksExistFlag | TrackPanelHasFocus) )
return;
// Likewise as above too...
else if( missingFlags == TrackPanelHasFocus )
return;
wxMessageBox(reason, _("Disallowed"), wxICON_WARNING | wxOK );
}