diff --git a/src/app/main.cpp b/src/app/main.cpp index a4df8fd75..37fa48a80 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -338,7 +338,7 @@ void showSplashScreen() #if defined(Q_OS_UNIX) void setupDpi() { - if (qgetenv("QT_AUTO_SCREEN_SCALE_FACTOR").isEmpty()) + if (qEnvironmentVariableIsEmpty("QT_AUTO_SCREEN_SCALE_FACTOR")) qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); } #endif // Q_OS_UNIX