Commit 061360f1 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't open a null application from the progress view (update transaction)

parent 18e65b4d
......@@ -79,8 +79,10 @@ Kirigami.BasicListItem {
id: del
separatorVisible: false
onClicked: {
Navigation.clearStack()
Navigation.openApplication(model.application)
if (model.application) {
Navigation.clearStack()
Navigation.openApplication(model.application)
}
}
readonly property QtObject listener: listenerComp.createObject(del, (model.transaction.resource ? {resource: model.transaction.resource} : {transaction: model.transaction}))
......
......@@ -49,6 +49,7 @@ function openCategory(cat, search) {
}
function openApplication(app) {
console.assert(app)
window.stack.push(applicationComp, { application: app })
}
......
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