Author: asterix Date: 2008-08-13 13:46:06 +0200 (Wed, 13 Aug 2008) New Revision: 10226
Modified: trunk/src/history_window.py Log: don't look for history in database when none is typed in history window. Fixes #4192
Modified: trunk/src/history_window.py =================================================================== --- trunk/src/history_window.py 2008-08-13 11:21:39 UTC (rev 10225) +++ trunk/src/history_window.py 2008-08-13 11:46:06 UTC (rev 10226) @@ -307,6 +307,8 @@ self.window.set_title(title)
def on_calendar_day_selected(self, widget): + if not self.jid: + return year, month, day = widget.get_date() # integers month = gtkgui_helpers.make_gtk_month_python_month(month) self._add_lines_for_date(year, month, day) @@ -581,4 +583,4 @@ self._load_history(jid, account) self.results_window.set_property('visible', False)
-# vim: se ts=3: \ No newline at end of file +# vim: se ts=3: