Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all
Unified · Split
| @@ -364,7 +364,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 363 unmodified lines | ||
| 364 | 364 | thread()->setObjectName("Main Thread"); |
| 365 | 365 | |
| 366 | 366 | 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 | + | |
| 368 | 372 | _entityClipboard->createRootElement(); |
| 369 | 373 | |
| 370 | 374 | _pluginContainer = new PluginContainerProxy(); |