diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2023-04-20 16:15:37 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2023-04-21 06:30:52 +0000 |
commit | 28c20b24aa633334b67ecb5402fc61e98d7b4c5b (patch) | |
tree | 35ae117c899cd22fd7cd8b3910c543ea1a0372c8 /src/plugins/vcsbase/vcsbaseclient.cpp | |
parent | ce7b99bc8887af995e1d34f00ba1831bd08c7d97 (diff) | |
download | qt-creator-28c20b24aa633334b67ecb5402fc61e98d7b4c5b.tar.gz |
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>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseclient.cpp')
-rw-r--r-- | src/plugins/vcsbase/vcsbaseclient.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp index a73758b15e..1bd13f312a 100644 --- a/src/plugins/vcsbase/vcsbaseclient.cpp +++ b/src/plugins/vcsbase/vcsbaseclient.cpp @@ -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); } |