[gnome-contacts/gnome-41] Ensure day range is reset to 31 in birthday editor



commit 1419e91eb339f9ed08806ffa03a4372a4907ad9f
Author: Charles Keepax <ckeepax gmail com>
Date:   Tue Sep 21 21:28:36 2021 +0100

    Ensure day range is reset to 31 in birthday editor
    
    When changing from a month with less than 31 days nothing currently
    increases the range of the day spinner up to 31, so it will be left at
    the previous months value, be that 28,29,30.

 src/contacts-editor-property.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/contacts-editor-property.vala b/src/contacts-editor-property.vala
index 4687fbd6..14fa933f 100644
--- a/src/contacts-editor-property.vala
+++ b/src/contacts-editor-property.vala
@@ -110,6 +110,8 @@ public class Contacts.BirthdayEditor : Gtk.Dialog {
         } else {
           day_spin.set_range (1, 28);
         }
+      } else {
+        day_spin.set_range (1, 31);
       }
     };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]