fix missing import in trunk. Fixes #5078
This commit is contained in:
parent
5da72ae743
commit
b583fa2479
|
@ -2501,8 +2501,9 @@ class ChatControl(ChatControlBase):
|
||||||
rows = gajim.logger.get_last_conversation_lines(jid, restore_how_many,
|
rows = gajim.logger.get_last_conversation_lines(jid, restore_how_many,
|
||||||
pending_how_many, timeout, self.account)
|
pending_how_many, timeout, self.account)
|
||||||
except exceptions.DatabaseMalformed:
|
except exceptions.DatabaseMalformed:
|
||||||
|
import common.logger
|
||||||
dialogs.ErrorDialog(_('Database Error'),
|
dialogs.ErrorDialog(_('Database Error'),
|
||||||
_('The database file (%s) cannot be read. Try to repair it or remove it (all history will be lost).') % constants.LOG_DB_PATH)
|
_('The database file (%s) cannot be read. Try to repair it or remove it (all history will be lost).') % common.logger.LOG_DB_PATH)
|
||||||
rows = []
|
rows = []
|
||||||
local_old_kind = None
|
local_old_kind = None
|
||||||
for row in rows: # row[0] time, row[1] has kind, row[2] the message
|
for row in rows: # row[0] time, row[1] has kind, row[2] the message
|
||||||
|
|
Loading…
Reference in New Issue