Commit e29c3b6e authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Disabled repeat combo in editor when in todo mode and when no due date set,...

Disabled repeat combo in editor when in todo mode and when no due date set, preventing a possible crash situation
parent 5444f004
Pipeline #94879 canceled with stage
......@@ -381,6 +381,7 @@ Kirigami.ScrollablePage {
Kirigami.FormData.label: i18n("Repeat:")
Layout.fillWidth: true
enabled: !incidenceForm.isTodo || !isNaN(root.incidenceWrapper.incidenceStart.getTime()) || !isNaN(root.incidenceWrapper.incidenceEnd.getTime())
textRole: "display"
valueRole: "interval"
onCurrentIndexChanged: if(currentIndex === 0) { root.incidenceWrapper.clearRecurrences() }
......
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