diff --git a/meshroom/ui/qml/GraphEditor/NodeLog.qml b/meshroom/ui/qml/GraphEditor/NodeLog.qml index 66667d04cb..fb2fb84e35 100644 --- a/meshroom/ui/qml/GraphEditor/NodeLog.qml +++ b/meshroom/ui/qml/GraphEditor/NodeLog.qml @@ -87,8 +87,9 @@ FocusScope { property string currentFile: chunksLV.currentChunk ? chunksLV.currentChunk[currentItem.fileProperty] : "" property string lastLoadedFile property date lastModTime - onCurrentFileChanged: if(visible) loadCurrentFile(false) - onVisibleChanged: loadCurrentFile() + onCurrentFileChanged: if(visible) loadCurrentFile() + onVisibleChanged: if(visible) loadCurrentFile() + TabButton { property string fileProperty: "logFile" @@ -197,6 +198,8 @@ FocusScope { function loadCurrentFile(keepCursorPosition) { + if(keepCursorPosition == undefined) + keepCursorPosition = false var xhr = new XMLHttpRequest; xhr.open("GET", Filepath.stringToUrl(fileSelector.currentFile)); xhr.onreadystatechange = function() {