diff --git a/src/Menus.cpp b/src/Menus.cpp index d4a937076..e66c4413a 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -8518,6 +8518,9 @@ int AudacityProject::DialogForLabelName(const wxString& initialValue, wxString& #ifdef EXPERIMENTAL_PUNCH_AND_ROLL void AudacityProject::OnPunchAndRoll(const CommandContext &WXUNUSED(context)) { + static const auto url = + wxT("Punch_and_Roll_Record#Using_Punch_and_Roll_Record"); + if (gAudioIO->IsBusy()) return; @@ -8538,7 +8541,7 @@ void AudacityProject::OnPunchAndRoll(const CommandContext &WXUNUSED(context)) ? _("Please select in a stereo track.") : wxString::Format( _("Please select at least %d channels."), recordingChannels); - AudacityMessageBox(message); + ShowErrorDialog(this, _("Error"), message, url); return; } @@ -8554,7 +8557,7 @@ void AudacityProject::OnPunchAndRoll(const CommandContext &WXUNUSED(context)) // that case, so a normal record, not a punch and roll, is called for. if (!wt->GetClipAtSample(sampleCount(floor(t1 * wt->GetRate()))) || t1 ==0.0) { auto message = _("Please select a time within a clip."); - AudacityMessageBox(message); + ShowErrorDialog(this, _("Error"), message, url); return; } const auto endTime = wt->GetEndTime();