Skip to content

[BUG] Active note in note tree not updated when following link in note tree mode #3560

@louwers

Description

@louwers

Expected behaviour

When following a link, the active note in the note tree is changed.

Actual behaviour

The previously open note stays selected, meaning you cannot go back to that note by clicking on it.

Steps to reproduce

Steps to reproduce the behavior:

  1. Start QOwnnotes in a fresh session
  2. Enable subfolders and "Instead of a note list use a note tree with all the subfolders"
  3. Follow a link

Video

Screen.Recording.2026-04-13.at.13.07.33.mov

Output from the debug section in the settings dialog

Expand

QOwnNotes Debug Information

General Info

Current Date: Mon Apr 13 13:05:56 2026
Version: 26.4.11
Build date: Apr 11 2026
Build number: 1310
Platform: macosx (cocoa)
Operating System: macOS Tahoe (26.4)
Build architecture: arm64
Current architecture: arm64
Release: GitHub Actions
Qt Version (build): 6.10.1
Qt Version (runtime): 6.10.1
Portable mode: no
Settings path / key: /Users/bart/Library/Preferences/com.pbe.QOwnNotes-bla.plist
Application database path: /Users/bart/Library/Application Support/PBE/QOwnNotes-bla/QOwnNotes.sqlite
Application arguments: /Applications/QOwnNotes.app/Contents/MacOS/QOwnNotes, --session, bla
Qt Debug: no
System Botan: no
Libgit2: no
QLiteHtml: yes
Locale (system): en_NL
Locale (interface): empty
Primary screen resolution: 3200x1800
Icon theme: breeze-qownnotes
Notes in current note folder: 2
Calendar items: 0
Enabled scripts: 0
Database drivers: QSQLITE, QODBC, QPSQL, QMIMER

Server Info

serverUrl: empty
appIsValid: no
notesPathExists: empty
connectionErrorMessage: empty

Spellchecking

Enabled: false
Selected language: auto
Language codes: empty
Language names: empty
Application dictionaries path: /Users/bart/Library/Application Support/PBE/QOwnNotes-bla/dicts

Note folders

currentNoteFolderId: 1

Note folder default

id: 1
isCurrent: yes
activeTagId: 0
localPath: /Users/bart/test
remotePath: Notes
cloudConnectionId: 1
isShowSubfolders: yes
isUseGit: no
allowDifferentNoteFileName: no
activeNoteSubFolder name: empty
database file: /Users/bart/test/notes.sqlite

Cloud connections

Cloud connection Default

id: 1
isCurrent: yes
serverUrl: empty
username: empty
accountId: empty

Enabled scripts

Settings

ACDMonthlyAnalyticsLastPosted (double): 797119021.135695
AKLastIDMSEnvironment (qlonglong): 0
AKLastLocale (QString): en_US@rg=nlzzzz
ActiveNoteHistoryItem (NoteHistoryItem): empty
ColorModes/ColorMode-dark/darkMode (bool): true
ColorModes/ColorMode-dark/darkModeColors (bool): true
ColorModes/ColorMode-dark/darkModeIconTheme (bool): true
ColorModes/ColorMode-dark/darkModeTrayIcon (bool): true
ColorModes/ColorMode-dark/editorColorSchemaKey (QString): EditorColorSchema-cdbf28fc-1ddc-4d13-bb21-6a4043316a2f
ColorModes/ColorMode-dark/internalIconTheme (bool): false
ColorModes/ColorMode-dark/name (QString): Dark
ColorModes/ColorMode-dark/systemIconTheme (bool): false
ColorModes/ColorMode-light/darkMode (bool): false
ColorModes/ColorMode-light/darkModeColors (bool): false
ColorModes/ColorMode-light/darkModeIconTheme (bool): false
ColorModes/ColorMode-light/darkModeTrayIcon (bool): false
ColorModes/ColorMode-light/editorColorSchemaKey (QString): EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb
ColorModes/ColorMode-light/internalIconTheme (bool): false
ColorModes/ColorMode-light/name (QString): Light
ColorModes/ColorMode-light/systemIconTheme (bool): false
ColorModes/currentId (QString): ColorMode-light
ColorModes/ids (QStringList): ColorMode-light, ColorMode-dark
Country (QString): NL
Debug/fakeOldVersionNumber (bool): false
Debug/fileLogging: empty
DistractionFreeMode/hideStatusBar (bool): false
Editor/CurrentSchemaKey (QString): EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb
Editor/autoBracketClosing (bool): true
Editor/autoBracketRemoval (bool): true
Editor/disableCursorBlinking (bool): false
Editor/editorWidthInDFMOnly (bool): true
Editor/hangingIndent (bool): false
Editor/headingFolding (bool): false
Editor/hideFormattingSyntax (bool): false
Editor/highlightCurrentLine (bool): true
Editor/indentSize (qlonglong): 4
Editor/markdownLspArguments (QStringList): empty
Editor/markdownLspCommand (QString): marksman
Editor/markdownLspEnabled (bool): false
Editor/removeTrailingSpaces (bool): false
Editor/showLineNumbers (bool): false
Editor/showMarkdownImagePreviews (bool): true
Editor/useTabIndent (bool): false
Editor/vimMode (bool): false
Editor/wikiLinkFileNameAutoSelect (bool): false
Editor/wikiLinkSupport (bool): false
InitialKeyRepeat (double): 15
KB_DoubleQuoteOption (QString): “abc”
KB_SingleQuoteOption (QString): ‘abc’
KB_SpellingLanguage (QVariantMap): empty
KeyRepeat (double): 2
LastUpdateCheck (QDateTime): 2026-04-13T13:03:56.847
MainWindow/geometry (QByteArray): <binary data>
MainWindow/mainToolBar.iconSize (qlonglong): 32
MainWindow/menuBarGeometry (QByteArray): <binary data>
MainWindow/noteTextEdit.code.font (QString): Menlo,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
MainWindow/noteTextEdit.font (QString): .AppleSystemUIFont,13,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
MainWindow/noteTextView.code.font (QString): Menlo,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
MainWindow/noteTextView.font (QString): .AppleSystemUIFont,13,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
MainWindow/noteTextView.ignoreCodeFontSize (bool): true
MainWindow/noteTextView.refreshDebounceTime (qlonglong): 600
MainWindow/noteTextView.rtl (bool): false
MainWindow/noteTextView.underline (bool): false
MainWindow/noteTextView.useEditorStyles (bool): true
MainWindow/noteTextView.useInternalExportStyling (bool): true
MainWindow/showNotesFromAllNoteSubFolders (bool): false
NoteFolder-1/NoteTabNameList (QStringList): Welcome to QOwnNotes
NoteFolder-1/NoteTabStickinessList (QStringList): empty
NoteFolder-1/NoteTabSubFolderPathDataList (QStringList): empty
NoteHistory-1 (QVariantList): <variant list with 2 item(s)>
NoteHistoryCurrentIndex-1 (qlonglong): 1
PiwikClientId (QString): <hidden>
SearchEngineId (qlonglong): 0
SettingsDialog/geometry (QByteArray): <binary data>
SettingsDialog/mainSplitterState (QByteArray): <binary data>
ShowSystemTray (bool): false
StartHidden (bool): false
WelcomeDialog/geometry (QByteArray): <binary data>
acceptAllExternalModifications (bool): false
ai/autocompleteEnabled (bool): false
ai/groq/apiKey (QString): <hidden>
ai/mcpServerEnabled (bool): false
ai/mcpServerPort (qlonglong): 22226
ai/mcpServerToken (QString): AwIdD6vd6KWT18K6xvCd7YDCy9D09qWcqe3pjLGc15HLr/2m1g==
ai/openai/apiKey (QString): <hidden>
ai/responseTimeout (qlonglong): 15
allowEmptyNotes (bool): true
allowNoteEditing (bool): true
allowOnlyOneAppInstance (bool): false
appMetrics/disableAppHeartbeat (bool): false
appMetrics/disableTracking (bool): false
appMetrics/notificationShown (bool): true
autoReadOnlyMode (bool): false
autoReadOnlyModeTimeout (qlonglong): 30
automaticNoteFolderDatabaseClosing (bool): false
checkSpelling (bool): false
closeTodoListAfterSave (bool): false
cryptoKey (qlonglong): <hidden>
currentNoteFolderId (qlonglong): 1
currentWorkspace (QString): initial
cursorWidth (qlonglong): 1
darkMode (bool): false
defaultNoteFileExtension (QString): md
demoNotesCreated (bool): true
disableAutomaticUpdateDialog (bool): true
disableSavedSearchesAutoCompletion (bool): false
dockWasInitializedOnce (bool): true
enableNoteChecksumChecks (bool): false
enableNoteTree (bool): false
enableReadOnlyMode (bool): true
enableSocketServer (bool): true
enableWebAppSupport (bool): false
externalEditorPath (QString): empty
fullyHighlightedBlockquotes (bool): false
gitCommitInterval (qlonglong): 30
gitExecutablePath (QString): empty
gitLogCommand (QString): empty
guiFirstRunInit (bool): true
hideIconsInMenus (bool): true
hideTabCloseButton (bool): false
ignoreAllExternalModifications (bool): false
ignoreAllExternalNoteFolderChanges (bool): false
ignoreNoteSubFolders (QString): ^\.
ignoredNoteFiles (QString): empty
imageScaleDown (bool): false
imageScaleDownMaximumHeight (qlonglong): 1024
imageScaleDownMaximumWidth (qlonglong): 1024
initialLayoutIdentifier (QString): minimal
insertTimeFormat (QString): empty
interfaceFontSize (qlonglong): 11
interfaceLanguage (QString): empty
interfaceScalingFactor (qlonglong): 100
itemHeight (qlonglong): 18
languageToolApiKey (QString): empty
languageToolCheckDelay (qlonglong): 1500
languageToolEnabled (bool): false
languageToolEnabledCategories (QStringList): TYPOS, GRAMMAR, STYLE, REDUNDANCY, PUNCTUATION, TYPOGRAPHY
languageToolLanguage (QString): auto
languageToolServerUrl (QString): http://localhost:8081
legacyLinking (bool): false
localTrash/autoCleanupDays (qlonglong): 30
localTrash/autoCleanupEnabled (bool): true
localTrash/supportEnabled (bool): true
markdownHighlightingEnabled (bool): true
maxNoteFileSize (qlonglong): 1048576
navigationPanelAutoSelect (bool): true
navigationPanelHideSearch (bool): false
networking/ignoreSSLErrors (bool): true
networking/proxyType (qlonglong): 2
newNoteAskHeadline (bool): false
noteEditIsCentralWidget (bool): true
noteFileExtensionList (QStringList): md, txt
noteListPreview (bool): false
noteSaveIntervalTime (qlonglong): 10
noteSearchPanelOpenCreatedNotesInNewTab (bool): false
noteSubfoldersPanelDisplayAsFullTree (bool): true
noteSubfoldersPanelHideSearch (bool): false
noteSubfoldersPanelOrder (qlonglong): 0
noteSubfoldersPanelShowFullPath (bool): false
noteSubfoldersPanelShowNotesRecursively (bool): false
noteSubfoldersPanelShowRootFolderName (bool): false
noteSubfoldersPanelSort (qlonglong): 1
noteSubfoldersPanelTabsUnsetAllNotesSelection (bool): false
notesPanelOrder (qlonglong): 1
notesPanelSort (qlonglong): 1
notesPath (QString): /Users/bart/test
notifyAllExternalModifications (bool): false
overrideInterfaceFontSize (bool): false
overrideInterfaceScalingFactor (bool): false
ownCloud/supportEnabled (bool): false
ownCloud/todoCalendarBackend (qlonglong): 3
ownCloud/todoCalendarCalDAVPassword (QString): <hidden>
ownCloud/todoCalendarCalDAVServerUrl (QString): empty
ownCloud/todoCalendarCalDAVUsername (QString): empty
ownCloud/todoCalendarCloudConnectionId (qlonglong): 1
ownCloud/todoCalendarDisplayNameList (QStringList): empty
ownCloud/todoCalendarEnabledList (QStringList): empty
ownCloud/todoCalendarEnabledUrlList (QStringList): empty
ownCloud/todoCalendarUrlList (QStringList): empty
ownCloudInfo/appIsValid (bool): false
ownCloudInfo/connectionErrorMessage (QString): empty
ownCloudInfo/notesPathExistsText (QString): empty
ownCloudInfo/serverVersion (QString): empty
restoreCursorPosition (bool): false
restoreLastNoteAtStartup (bool): true
restoreNoteTabs (bool): true
shouldShowRSVPDataDetectors (bool): false
showMatches (bool): true
showMenuBar (bool): false
showStatusBar (bool): true
showStatusBarNotePath (bool): true
showStatusBarRelativeNotePath (bool): false
startInReadOnlyMode (bool): false
taggingShowNotesRecursively (bool): false
tagsPanelHideNoteCount (bool): false
tagsPanelHideSearch (bool): false
tagsPanelOrder (qlonglong): 0
tagsPanelSort (qlonglong): 0
todoCalendarSupport (bool): true
useNoteFolderButtons (bool): false
useUNIXNewline (bool): false
webAppClientService/serverUrl (QString): wss://app.qownnotes.org
webAppClientService/token (QString): <hidden>
webSocketServerService/bookmarkSuggestionApiEnabled (bool): false
webSocketServerService/bookmarkSuggestionApiPort (qlonglong): 22224
webSocketServerService/bookmarkSuggestionApiToken (QString): <hidden>
webSocketServerService/bookmarksNoteName (QString): Bookmarks
webSocketServerService/bookmarksTag (QString): bookmarks
webSocketServerService/commandSnippetsNoteName (QString): Commands
webSocketServerService/commandSnippetsTag (QString): commands
webSocketServerService/port (qlonglong): 22222
workspace-initial/name (QString): Minimal
workspace-initial/noteEditIsCentralWidget (bool): true
workspace-initial/noteSubFolderDockWidgetVisible (bool): true
workspace-initial/windowState (QByteArray): <binary data>
workspaces (QStringList): initial

System environment

COLORTERM: truecolor
COMMAND_MODE: unix2003
GHOSTTY_BIN_DIR: /Applications/Ghostty.app/Contents/MacOS
GHOSTTY_RESOURCES_DIR: /Applications/Ghostty.app/Contents/Resources/ghostty
GHOSTTY_SHELL_FEATURES: cursor:blink,path,ssh-env,ssh-terminfo,title
HOME: /Users/bart
LANG: en_US.UTF-8
LOGNAME: bart
MANPATH: /usr/share/man:/usr/local/share/man:/Applications/Ghostty.app/Contents/Resources/ghostty/../man:
NIX_PROFILES: /nix/var/nix/profiles/default /Users/bart/.nix-profile
NIX_SSL_CERT_FILE: /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
OLDPWD: /Users/bart
OSLogRateLimit: 64
PATH: /Users/bart/.local/bin:/Users/bart/.local/bin:/Users/bart/bin:/Users/bart/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pkg/env/active/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/opt/homebrew/bin:/Users/bart/.cargo/bin:/Applications/Ghostty.app/Contents/MacOS
PWD: /Users/bart
QT_LOGGING_RULES: qt.network.ssl.warning=false
SHELL: /bin/zsh
SHLVL: 1
SSH_AUTH_SOCK: /var/run/com.apple.launchd.7ObHAlrQdT/Listeners
TERM: xterm-ghostty
TERMINFO: /Applications/Ghostty.app/Contents/Resources/terminfo
TERM_PROGRAM: ghostty
TERM_PROGRAM_VERSION: 1.3.1
TMPDIR: /var/folders/c8/rd0dk8q51vb_3wjw2whh_61h0000gn/T/
USER: bart
XDG_DATA_DIRS: /usr/local/share:/usr/share:/Applications/Ghostty.app/Contents/Resources/ghostty/..:/Users/bart/.nix-profile/share:/nix/var/nix/profiles/default/share
XPC_FLAGS: 0x0
XPC_SERVICE_NAME: 0
_: /Applications/QOwnNotes.app/Contents/MacOS/QOwnNotes
__CFBundleIdentifier: com.mitchellh.ghostty
__CF_USER_TEXT_ENCODING: 0x1F5:0x0:0x0
__ETC_PROFILE_NIX_SOURCED: 1

Relevant log output in the Log panel

No relevant logs.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions