fix traceback when changing month/year in history window with no selected jid. Fixes #4240
This commit is contained in:
parent
b284b586da
commit
fc8d21fd5e
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue