summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2016-07-27 12:15:10 +0200
committerFlorian Bruhin <git@the-compiler.org>2016-07-27 12:15:37 +0200
commit410be07f548fcf021baa8b8fa72959fdbd47a38e (patch)
tree01f48b728d0903e45123f84933c3a682a09f0652
parent01de52c23a512b46f2e1ff95068127092858d55f (diff)
downloadqutebrowser-410be07f548fcf021baa8b8fa72959fdbd47a38e.tar.gz
qutebrowser-410be07f548fcf021baa8b8fa72959fdbd47a38e.zip
Hide harfbuzz warning if frozen
-rw-r--r--qutebrowser/misc/earlyinit.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/qutebrowser/misc/earlyinit.py b/qutebrowser/misc/earlyinit.py
index 36a93786a..284478866 100644
--- a/qutebrowser/misc/earlyinit.py
+++ b/qutebrowser/misc/earlyinit.py
@@ -170,8 +170,11 @@ def fix_harfbuzz(args):
from qutebrowser.utils import log
from PyQt5.QtCore import qVersion
if 'PyQt5.QtWidgets' in sys.modules:
- log.init.warning("Harfbuzz fix attempted but QtWidgets is already "
- "imported!")
+ msg = "Harfbuzz fix attempted but QtWidgets is already imported!"
+ if getattr(sys, 'frozen', False):
+ log.init.debug(msg)
+ else:
+ log.init.warning(msg)
if sys.platform.startswith('linux') and args.harfbuzz == 'auto':
if qVersion() == '5.3.0':
log.init.debug("Using new harfbuzz engine (auto)")