main: disable NetworkAccessBlockingFactory.h if Qt < 5.12

Due to a potential Qt bug qrc:///lang/languages.xml gets
blocked resulting in broken translations.
This commit is contained in:
selsta 2020-06-30 04:20:34 +02:00
parent ccd8eb1c3a
commit b54127e997
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -418,7 +418,9 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
QQmlApplicationEngine engine;
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
engine.setNetworkAccessManagerFactory(new NetworkAccessBlockingFactory);
#endif
OSCursor cursor;
engine.rootContext()->setContextProperty("globalCursor", &cursor);
OSHelper osHelper;