Fix session settings not populating: use baseName not displayName
killTargetSessionName was set to item.name (displayName, e.g. 'ollie (1)') instead of item.baseName (the actual 9P path component 'ollie'). This caused readSessionConfig() to read from a non-existent path. Also fixes the Goal dialog which had the same latent bug.
This commit is contained in:
parent
a7b8c4c2ce
commit
5a8f7e394e
|
|
@ -99,7 +99,7 @@ Item {
|
||||||
var item = sessionModel.get(parent.modelIndex)
|
var item = sessionModel.get(parent.modelIndex)
|
||||||
if (item) {
|
if (item) {
|
||||||
tree.killTargetSessionId = item.id
|
tree.killTargetSessionId = item.id
|
||||||
tree.killTargetSessionName = item.name
|
tree.killTargetSessionName = item.baseName
|
||||||
}
|
}
|
||||||
sessionCtxMenu.popup()
|
sessionCtxMenu.popup()
|
||||||
} else if (type === "agent") {
|
} else if (type === "agent") {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue