forked from Public/monero-gui
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:
@@ -418,7 +418,9 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
|
|||||||
|
|
||||||
QQmlApplicationEngine engine;
|
QQmlApplicationEngine engine;
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||||
engine.setNetworkAccessManagerFactory(new NetworkAccessBlockingFactory);
|
engine.setNetworkAccessManagerFactory(new NetworkAccessBlockingFactory);
|
||||||
|
#endif
|
||||||
OSCursor cursor;
|
OSCursor cursor;
|
||||||
engine.rootContext()->setContextProperty("globalCursor", &cursor);
|
engine.rootContext()->setContextProperty("globalCursor", &cursor);
|
||||||
OSHelper osHelper;
|
OSHelper osHelper;
|
||||||
|
|||||||
Reference in New Issue
Block a user