Fix QT font database initializing (FCGI with IIS)

When using FCGI with IIS, environment variables (QT_QPA_FONTDIR in this case) are lost after fcgi_accept().
This commit is contained in:
Stefan Pascal 2019-09-13 16:45:34 +03:00 committed by Nyall Dawson
parent f3df32d866
commit bd8a7164cb

View File

@ -65,6 +65,13 @@ int main( int argc, char *argv[] )
#ifdef HAVE_SERVER_PYTHON_PLUGINS
server.initPython();
#endif
#ifdef Q_OS_WIN
// Initialize font database before fcgi_accept.
// When using FCGI with IIS, environment variables (QT_QPA_FONTDIR in this case) are lost after fcgi_accept().
QFontDatabase fontDB;
#endif
// Starts FCGI loop
while ( fcgi_accept() >= 0 )
{