Fix broken history search
This commit is contained in:
parent
94b2d1e577
commit
835bffd893
1 changed files with 4 additions and 4 deletions
|
@ -709,8 +709,8 @@ class HistoryWindow:
|
||||||
# make it a tuple (Y, M, D, 0, 0, 0...)
|
# make it a tuple (Y, M, D, 0, 0, 0...)
|
||||||
tim = time.strptime(model[path][Column.UNIXTIME], '%Y-%m-%d')
|
tim = time.strptime(model[path][Column.UNIXTIME], '%Y-%m-%d')
|
||||||
year = tim[0]
|
year = tim[0]
|
||||||
gtk_month = tim[1]
|
gtk_m = tim[1]
|
||||||
month = gtk_month(gtk_month)
|
month = gtk_month(gtk_m)
|
||||||
day = tim[2]
|
day = tim[2]
|
||||||
|
|
||||||
# switch to belonging logfile if necessary
|
# switch to belonging logfile if necessary
|
||||||
|
@ -719,10 +719,10 @@ class HistoryWindow:
|
||||||
self._load_history(log_jid, None)
|
self._load_history(log_jid, None)
|
||||||
|
|
||||||
# avoid reruning mark days algo if same month and year!
|
# avoid reruning mark days algo if same month and year!
|
||||||
if year != cur_year or gtk_month != cur_month:
|
if year != cur_year or gtk_m != cur_month:
|
||||||
self.calendar.select_month(month, year)
|
self.calendar.select_month(month, year)
|
||||||
|
|
||||||
if year != cur_year or gtk_month != cur_month or day != cur_day:
|
if year != cur_year or gtk_m != cur_month or day != cur_day:
|
||||||
self.calendar.select_day(day)
|
self.calendar.select_day(day)
|
||||||
|
|
||||||
self._scroll_to_message_and_highlight(model[path][Column.LOG_LINE_ID])
|
self._scroll_to_message_and_highlight(model[path][Column.LOG_LINE_ID])
|
||||||
|
|
Loading…
Add table
Reference in a new issue