From 1f69b98cacecbd98125cb1395fb67aa0dee6d16d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 29 Dec 2009 00:01:10 +0100 Subject: [PATCH] re-enable LATEX usage. --- src/common/gajim.py | 5 +++-- src/gui_interface.py | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/common/gajim.py b/src/common/gajim.py index a8e6618fe..3c33d69af 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -182,8 +182,9 @@ else: if system('gpg -h >/dev/null 2>&1'): HAVE_GPG = False -import latex -HAVE_LATEX = config.get('use_latex') and latex.check_for_latex_support() +# Depends on use_latex option. Will be correctly set after we config options are +# read. +HAVE_LATEX = False HAVE_INDICATOR = True try: diff --git a/src/gui_interface.py b/src/gui_interface.py index c8f53fbff..a500f939f 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -3198,6 +3198,11 @@ class Interface: } cfg_was_read = parser.read() + + from common import latex + gajim.HAVE_LATEX = gajim.config.get('use_latex') and \ + latex.check_for_latex_support() + gajim.logger.reset_shown_unread_messages() # override logging settings from config (don't take care of '-q' option) if gajim.config.get('verbose'):