don't look for history in database when none is typed in history window. Fixes #4192

This commit is contained in:
Yann Leboulanger 2008-08-13 11:46:06 +00:00
parent db0be5c05a
commit 04de76b65a
1 changed files with 3 additions and 1 deletions

View File

@ -307,6 +307,8 @@ class HistoryWindow:
self.window.set_title(title) self.window.set_title(title)
def on_calendar_day_selected(self, widget): def on_calendar_day_selected(self, widget):
if not self.jid:
return
year, month, day = widget.get_date() # integers year, month, day = widget.get_date() # integers
month = gtkgui_helpers.make_gtk_month_python_month(month) month = gtkgui_helpers.make_gtk_month_python_month(month)
self._add_lines_for_date(year, month, day) self._add_lines_for_date(year, month, day)
@ -581,4 +583,4 @@ class HistoryWindow:
self._load_history(jid, account) self._load_history(jid, account)
self.results_window.set_property('visible', False) self.results_window.set_property('visible', False)
# vim: se ts=3: # vim: se ts=3: