mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
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:
parent
f3df32d866
commit
bd8a7164cb
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user