gui: procs window shows '(no output)' for empty output
This commit is contained in:
parent
84d45d051b
commit
16c5a4cd13
|
|
@ -127,7 +127,8 @@ Window {
|
|||
onClicked: selectedPid = modelData.pid
|
||||
onDoubleClicked: {
|
||||
selectedPid = modelData.pid
|
||||
outputText = ollie.procOutput(currentSessionId, currentAgentId, selectedPid)
|
||||
var out = ollie.procOutput(currentSessionId, currentAgentId, selectedPid)
|
||||
outputText = out.length > 0 ? out : "(no output)"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -233,7 +234,8 @@ Window {
|
|||
enabled: selectedPid > 0
|
||||
onClicked: {
|
||||
outputText = ""
|
||||
outputText = ollie.procOutput(currentSessionId, currentAgentId, selectedPid)
|
||||
var out = ollie.procOutput(currentSessionId, currentAgentId, selectedPid)
|
||||
outputText = out.length > 0 ? out : "(no output)"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue