From b54127e9979eb9bdb923ae91d3e61917e3bc2448 Mon Sep 17 00:00:00 2001 From: selsta Date: Tue, 30 Jun 2020 04:20:34 +0200 Subject: [PATCH] main: disable NetworkAccessBlockingFactory.h if Qt < 5.12 Due to a potential Qt bug qrc:///lang/languages.xml gets blocked resulting in broken translations. --- src/main/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/main.cpp b/src/main/main.cpp index 86c64304..289d3381 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -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;