Commit a172bd97 authored by Martin Straka's avatar Martin Straka

Fixed wrong log file location

parent 7ae6ad37
......@@ -33,6 +33,7 @@ Item {
property var pageView
property var statusBar
property string logFileLocation: ""
property string logFilePath: ""
/* Return file name from file path */
......@@ -43,7 +44,7 @@ Item {
Component.onCompleted: {
var logTxt = files.loadLogContent(logFilePath)
logContent.text = "<b>" + qsTr("Log from current run:") + "</b><br/><br/>" + logTxt
logFilePath = files.getLocFileLocation()
logFileLocation = files.getLocFileLocation()
}
/* File dialog for choose of files from the storage */
......@@ -116,7 +117,7 @@ Item {
font.pointSize: defaultTextFont.font.pointSize
anchors.horizontalCenter: parent.horizontalCenter
onClicked: {
fileDialogue.raise("Choose log file", ["*.log"], true, logFilePath)
fileDialogue.raise("Choose log file", ["*.log"], true, logFileLocation)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment