mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 10:31:58 +02:00
Looks like setCentralWidget is ending up calling the init functions in newer
versions of Qt. Initialize the network access manager before that happens.
This commit is contained in:
parent
0ea60c1b0b
commit
d820611618
1 changed files with 2 additions and 2 deletions
|
@ -213,13 +213,13 @@ Application::Application(int& argc, char** argv, timeval &startup_time) :
|
||||||
// start the nodeList threads
|
// start the nodeList threads
|
||||||
NodeList::getInstance()->startSilentNodeRemovalThread();
|
NodeList::getInstance()->startSilentNodeRemovalThread();
|
||||||
|
|
||||||
_window->setCentralWidget(_glWidget);
|
|
||||||
|
|
||||||
_networkAccessManager = new QNetworkAccessManager(this);
|
_networkAccessManager = new QNetworkAccessManager(this);
|
||||||
QNetworkDiskCache* cache = new QNetworkDiskCache(_networkAccessManager);
|
QNetworkDiskCache* cache = new QNetworkDiskCache(_networkAccessManager);
|
||||||
cache->setCacheDirectory("interfaceCache");
|
cache->setCacheDirectory("interfaceCache");
|
||||||
_networkAccessManager->setCache(cache);
|
_networkAccessManager->setCache(cache);
|
||||||
|
|
||||||
|
_window->setCentralWidget(_glWidget);
|
||||||
|
|
||||||
restoreSizeAndPosition();
|
restoreSizeAndPosition();
|
||||||
_window->setVisible(true);
|
_window->setVisible(true);
|
||||||
_glWidget->setFocusPolicy(Qt::StrongFocus);
|
_glWidget->setFocusPolicy(Qt::StrongFocus);
|
||||||
|
|
Loading…
Reference in a new issue