From 0156f9203a1d52e6bac6e51a0d54d36d96291bb4 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Thu, 17 Nov 2022 13:15:39 +0100 Subject: [PATCH] Remove selection in DatePicker if it is outside the current displayed month. --- linphone-app/ui/modules/Common/Picker/DatePicker.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linphone-app/ui/modules/Common/Picker/DatePicker.qml b/linphone-app/ui/modules/Common/Picker/DatePicker.qml index fb9eb1b0d..f740d478b 100644 --- a/linphone-app/ui/modules/Common/Picker/DatePicker.qml +++ b/linphone-app/ui/modules/Common/Picker/DatePicker.qml @@ -107,7 +107,7 @@ Item{ id: cellItem property int day: index - 7 // 0 = top left below Sunday (-7 to 41) property int date: day - firstDay + 1 // 1-31 - property bool selected : new Date(year, month, date).toDateString() == monthList.selectedDate.toDateString() && text.text && day >= 0 + property bool selected : text.text != '-' && new Date(year, month, date).toDateString() == monthList.selectedDate.toDateString() && text.text && day >= 0 width: grid.cellMinSize height: width