qt: Ignore GUIUtil::updateFont calls until GUIUtil::loadFonts was called (#3687)

This commit is contained in:
dustinface 2020-09-08 11:55:38 +02:00 committed by pasta
parent 608f481a9c
commit 50d7a2fecf

View File

@ -1555,6 +1555,11 @@ void setFixedPitchFont(const std::vector<QWidget*>& vecWidgets)
void updateFonts()
{
// Fonts need to be loaded by GUIIUtil::loadFonts(), if not just return.
if (!osDefaultFont) {
return;
}
setApplicationFont();
auto getKey = [](QWidget* w) -> QString {