Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-08-13 15:46:06 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-08-13 15:46:06 +0400
commit04de76b65a3316b3109dc4e03592fd96a31c8dc8 (patch)
tree2926d0f22e515d31df4abf672b4e4b2c805a8303
parentdb0be5c05abea497198eca88b8da7cbfb11200ae (diff)
don't look for history in database when none is typed in history window. Fixes #4192
-rw-r--r--src/history_window.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/history_window.py b/src/history_window.py
index f53896c2f..5e66d7c5f 100644
--- a/src/history_window.py
+++ b/src/history_window.py
@@ -307,6 +307,8 @@ class HistoryWindow:
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 @@ class HistoryWindow:
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: