Commit 6f516577 authored by Volker Krause's avatar Volker Krause
Browse files

Fix ticket token not being updated for single entries

parent 1a23c057
Pipeline #203691 failed with stage
in 1 minute and 7 seconds
......@@ -39,10 +39,12 @@ ColumnLayout {
model: ticketModel
textRole: "display"
Layout.fillWidth: true
currentIndex: ticketModel.initialIndex
// ugly, but rowCount does not trigger binding changes
Component.onCompleted: visible = ticketModel.rowCount() >= 1 && root.resIds.length > 1
Component.onCompleted: {
visible = ticketModel.rowCount() >= 1 && root.resIds.length > 1;
currentIndex = ticketModel.initialIndex;
}
}
BarcodeContainer {
......
Supports Markdown
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