Skip to content

Commit

Permalink
Fix debug builds on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
stloeffler committed Aug 15, 2022
1 parent 9d328a1 commit 44e5725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/QtPDF/src/backends/PopplerQtBackend.cpp
Expand Up @@ -1156,8 +1156,8 @@ QSharedPointer<Backend::Document> PopplerQtBackend::newDocument(const QString &
// FONTCONFIG_PATH
if (!qEnvironmentVariableIsSet("FONTCONFIG_PATH")) {
QDir confPath{QCoreApplication::applicationDirPath()};
if (confPath.cd("../etc/fonts")) {
if (confPath.exists("fonts.conf")) {
if (confPath.cd(QStringLiteral("../etc/fonts"))) {
if (confPath.exists(QStringLiteral("fonts.conf"))) {
qputenv("FONTCONFIG_PATH", confPath.path().toLocal8Bit());
}
}
Expand Down

0 comments on commit 44e5725

Please sign in to comment.