mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-26 17:18:41 +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:
parent
1c6c608c13
commit
c48310c519
@ -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
|
// If the only thing wrong was no tracks, we do nothing and don't report a problem
|
||||||
else if( missingFlags == TracksExistFlag )
|
else if( missingFlags == TracksExistFlag )
|
||||||
return;
|
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 );
|
wxMessageBox(reason, _("Disallowed"), wxICON_WARNING | wxOK );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user