do not tb if with contact we have no logs at all
This commit is contained in:
parent
25fcf22b68
commit
f87affbf7b
|
@ -120,11 +120,12 @@ class HistoryWindow:
|
||||||
# select and show logs for last date we have logs with contact
|
# select and show logs for last date we have logs with contact
|
||||||
# and if we don't have logs at all, default to today
|
# and if we don't have logs at all, default to today
|
||||||
result = gajim.logger.get_last_date_that_has_logs(self.jid)
|
result = gajim.logger.get_last_date_that_has_logs(self.jid)
|
||||||
tim = result[0]
|
if result is None:
|
||||||
if tim != '':
|
|
||||||
date = time.localtime(tim)
|
|
||||||
else:
|
|
||||||
date = time.localtime()
|
date = time.localtime()
|
||||||
|
else:
|
||||||
|
tim = result[0]
|
||||||
|
date = time.localtime(tim)
|
||||||
|
|
||||||
y, m, d = date[0], date[1], date[2]
|
y, m, d = date[0], date[1], date[2]
|
||||||
self.calendar.select_day(d)
|
self.calendar.select_day(d)
|
||||||
self.add_lines_for_date(y, m, d)
|
self.add_lines_for_date(y, m, d)
|
||||||
|
|
Loading…
Reference in New Issue