From e467827d04b9ffdd7e2212862bc11494f5252cd5 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 18 Jul 2016 22:33:20 +0200 Subject: [PATCH] App: Fix application font loading QDir::entryList just returns file names as strings. In order to get the full absolute paths of the font files, we need QFileInfos instead, which dir.entryInfoList returns. Change-Id: Ied0fb74afa4d02723d172f06d998a6916d5b0c9a Reviewed-by: Thomas Hartmann --- src/app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 33117259434..13c178ec1ae 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -301,7 +301,7 @@ void loadFonts() const QDir dir(QCoreApplication::applicationDirPath() + QLatin1String(SHARE_PATH) + QLatin1String("/fonts/")); - foreach (const QFileInfo &fileInfo, dir.entryList(QStringList("*.ttf"), QDir::Files)) + foreach (const QFileInfo &fileInfo, dir.entryInfoList(QStringList("*.ttf"), QDir::Files)) QFontDatabase::addApplicationFont(fileInfo.absoluteFilePath()); }