History

set the bearer poll timeout for wlan scan in Qt 5.5

Stephen Birarda committed 11 years ago

Commit 79875951 parent 9f0721c3 files · +13 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Application.cpp+5−1
@@ -364,7 +364,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 363 unmodified lines
364364 thread()->setObjectName("Main Thread");
365365
366366 setInstance(this);
367−
367+
368+ // to work around the Qt constant wireless scanning, set the env for polling interval very high
369+ const QByteArray EXTREME_BEARER_POLL_TIMEOUT = QString::number(INT_MAX).toLocal8Bit();
370+ qputenv("QT_BEARER_POLL_TIMEOUT", EXTREME_BEARER_POLL_TIMEOUT);
371+
368372 _entityClipboard->createRootElement();
369373
370374 _pluginContainer = new PluginContainerProxy();