From 0e5cc3b11872b64bc0bc4b46ee5e1214a3669ddd Mon Sep 17 00:00:00 2001 From: xdustinface Date: Sat, 5 Sep 2020 04:34:33 +0200 Subject: [PATCH] qt: Ignore GUIUtil::updateFont calls until GUIUtil::loadFonts was called --- src/qt/guiutil.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 5768d8df668b..4b4327327080 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -1516,6 +1516,11 @@ void setFixedPitchFont(const std::vector& vecWidgets) void updateFonts() { + // Fonts need to be loaded by GUIIUtil::loadFonts(), if not just return. + if (!osDefaultFont) { + return; + } + setApplicationFont(); auto getKey = [](QWidget* w) -> QString {