don't go before 1/1/1900 in history window. Fixes #5684

This commit is contained in:
Yann Leboulanger 2010-04-02 09:21:56 +02:00
parent 1d6378e5c1
commit 87d430d726

View file

@ -337,6 +337,11 @@ class HistoryWindow:
if not self.jid:
return
year, month, day = widget.get_date() # integers
if year < 1900:
widget.select_month(0, 1900)
widget.select_day(1)
return
# in gtk January is 1, in python January is 0,
# I want the second
# first day of month is 1 not 0