VcsCommand: Limit the usage of setCookie()

Don't use setCookie() for setting the line number
to be shown on annotation. Add setDefaultLineNumber()
setter to VcsBaseEditorWidget instead.

Change-Id: I6c52874d48532132a27b2a7a9d161705170f7ade
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-08-02 07:25:46 +02:00
parent 1838f63958
commit 1d0f553ac5
4 changed files with 15 additions and 10 deletions

View File

@@ -375,7 +375,7 @@ VcsBaseEditorWidget *VcsBaseClient::annotate(
vcsCmdString.toLatin1().constData(), id);
VcsCommand *cmd = createCommand(workingDir, editor);
cmd->setCookie(lineNumber);
editor->setDefaultLineNumber(lineNumber);
enqueueJob(cmd, args);
return editor;
}