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
1 changed files with 2 additions and 0 deletions

View File

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