fix traceback when changing month/year in history window with no selected jid. Fixes #4240

This commit is contained in:
Yann Leboulanger 2008-08-26 10:55:18 +00:00
parent b284b586da
commit fc8d21fd5e

View file

@ -313,6 +313,8 @@ class HistoryWindow:
'''asks for days in this month if they have logs it bolds them (marks '''asks for days in this month if they have logs it bolds them (marks
them) them)
''' '''
if not self.jid:
return
year, month, day = widget.get_date() # integers year, month, day = widget.get_date() # integers
# in gtk January is 1, in python January is 0, # in gtk January is 1, in python January is 0,
# I want the second # I want the second