From b583fa2479691af7e603665c4f5d3a36cb688fbd Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 7 Jun 2009 20:59:04 +0200 Subject: [PATCH] fix missing import in trunk. Fixes #5078 --- src/chat_control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index 533ef9f4f..1ac46edd1 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -2501,8 +2501,9 @@ class ChatControl(ChatControlBase): rows = gajim.logger.get_last_conversation_lines(jid, restore_how_many, pending_how_many, timeout, self.account) except exceptions.DatabaseMalformed: + import common.logger 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 = [] local_old_kind = None for row in rows: # row[0] time, row[1] has kind, row[2] the message