From d820611618e78d3bac25eb0f449efe78a563a6f6 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Wed, 30 Oct 2013 12:25:43 -0700 Subject: [PATCH] Looks like setCentralWidget is ending up calling the init functions in newer versions of Qt. Initialize the network access manager before that happens. --- interface/src/Application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 6f1b8ae8e8..5ae72e5f98 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -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);