From ff87483b3243fdd1bc8d08419a78b1527b58e69a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Wed, 18 Apr 2012 10:36:39 +0200 Subject: [PATCH] correctly select result row in history window. Fixes #3939 --- src/history_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/history_window.py b/src/history_window.py index 3319eee58d..c458c65afc 100644 --- a/src/history_window.py +++ b/src/history_window.py @@ -602,7 +602,9 @@ class HistoryWindow: """ start_iter = self.history_buffer.get_start_iter() local_time = time.localtime(float(unix_time)) - tim = time.strftime('%X', local_time) + timestamp_str = gajim.config.get('time_stamp') + timestamp_str = helpers.from_one_line(timestamp_str) + tim = time.strftime(timestamp_str, local_time) result = start_iter.forward_search(tim, gtk.TEXT_SEARCH_VISIBLE_ONLY, None) if result is not None: -- GitLab