Commit b73a0418 authored by Nicolas Fella's avatar Nicolas Fella

Don't set date/time when picker was cancelled

parent 727f6c00
......@@ -64,7 +64,11 @@ Kirigami.Page
DatePickerButton {
text: _queryController.departureDate
Layout.fillWidth: true
onDatePicked: _queryController.departureDate = theDate
onDatePicked: {
if (theDate != "") {
_queryController.departureDate = theDate
}
}
}
Label {
......@@ -74,7 +78,11 @@ Kirigami.Page
TimePickerButton {
text: _queryController.departureTime
Layout.fillWidth: true
onTimePicked: _queryController.departureTime = theTime
onTimePicked: {
if (theTime != "") {
_queryController.departureTime = theTime
}
}
}
}
}
......
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