#4132 Disable Qt Bearer management

This commit is contained in:
Andrew Nelless 2017-05-10 15:25:21 +01:00
parent 54632e2ceb
commit bb726e6deb
1 changed files with 7 additions and 0 deletions

View File

@ -32,7 +32,10 @@
#if defined(Q_OS_MAC)
#include <Carbon/Carbon.h>
#endif
#ifdef Q_OS_DARWIN
#include <cstdlib>
#endif
class QThreadImpl : public QThread
@ -52,6 +55,10 @@ bool checkMacAssistiveDevices();
int main(int argc, char* argv[])
{
#ifdef Q_OS_DARWIN
/* Workaround for QTBUG-40332 - "High ping when QNetworkAccessManager is instantiated" */
::setenv ("QT_BEARER_POLL_TIMEOUT", "-1", 1);
#endif
QCoreApplication::setOrganizationName("Synergy");
QCoreApplication::setOrganizationDomain("http://symless.com/");
QCoreApplication::setApplicationName("Synergy");