diff --git a/aegisub/dialog_translation.cpp b/aegisub/dialog_translation.cpp index e432dd43b..bf25218c0 100644 --- a/aegisub/dialog_translation.cpp +++ b/aegisub/dialog_translation.cpp @@ -335,7 +335,13 @@ void DialogTranslation::OnTransBoxKey(wxKeyEvent &event) { // Next if (Hotkeys.IsPressed(_T("Translation Assistant Accept"))) { - JumpToLine(curline,curblock+1); + // JumpToLine() returns false if the requested line doesn't exist. + // Assume that means we were on the last line. + if (!JumpToLine(curline,curblock+1)) { + wxMessageBox(_("No more lines to translate.")); + EndModal(1); + return; + } TransText->ClearAll(); TransText->SetFocus(); }