VCS: Fix jumping to last line on some editors

I'm still not sure what causes this.

Fixes: QTCREATORBUG-29063
Change-Id: I861d91f1aa9a2fb36054d9f0a8e5e8e2f8fae872
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Orgad Shaneh
2023-04-20 16:15:37 +03:00
committed by Orgad Shaneh
parent ce7b99bc88
commit 28c20b24aa

View File

@@ -235,6 +235,7 @@ VcsBaseEditorWidget *VcsBaseClientImpl::createVcsEditor(Id kind, QString title,
connect(baseEditor, &VcsBaseEditorWidget::annotateRevisionRequested,
this, &VcsBaseClientImpl::annotateRevisionRequested);
baseEditor->setSource(source);
baseEditor->setDefaultLineNumber(1);
if (codec)
baseEditor->setCodec(codec);
}