mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-27 21:19:54 +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
|
||||
NodeList::getInstance()->startSilentNodeRemovalThread();
|
||||
|
||||
_window->setCentralWidget(_glWidget);
|
||||
|
||||
_networkAccessManager = new QNetworkAccessManager(this);
|
||||
QNetworkDiskCache* cache = new QNetworkDiskCache(_networkAccessManager);
|
||||
cache->setCacheDirectory("interfaceCache");
|
||||
_networkAccessManager->setCache(cache);
|
||||
|
||||
_window->setCentralWidget(_glWidget);
|
||||
|
||||
restoreSizeAndPosition();
|
||||
_window->setVisible(true);
|
||||
_glWidget->setFocusPolicy(Qt::StrongFocus);
|
||||
|
|
Loading…
Reference in a new issue