diff options
author | Eike Ziller <eike.ziller@qt.io> | 2024-05-13 16:25:38 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2024-05-17 06:51:52 +0000 |
commit | 9f1c6e9c72a373da1c57f9dc493a3e00ab69f54f (patch) | |
tree | 91eaa07e85c04264add36ac604f807db7415e861 /src/plugins | |
parent | 9160679b0452f22e6278b52e476ef8eaaab27c2e (diff) |
TextEditors: Do not add to history twice for Ctrl+Click navigation
When Ctrl+Clicking to follow symbols, the original location was added
twice to the history, once in the click handler, and once when the link
was opened in `TextEditorWidget::openLink`
Change-Id: I806165621d7ea229aa963b5b7d83c5327d8e7f14
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/texteditor/texteditor.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index 92636e63cd..6cb9b00b49 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -6861,7 +6861,6 @@ void TextEditorWidget::mouseReleaseEvent(QMouseEvent *e) { const Qt::MouseButton button = e->button(); if (d->m_linkPressed && d->isMouseNavigationEvent(e) && button == Qt::LeftButton) { - EditorManager::addCurrentPositionToNavigationHistory(); bool inNextSplit = ((e->modifiers() & Qt::AltModifier) && !alwaysOpenLinksInNextSplit()) || (alwaysOpenLinksInNextSplit() && !(e->modifiers() & Qt::AltModifier)); |