mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
refs #485, further removed global setup traits from classes with read only
Use global setup from sGui/sApp
This commit is contained in:
committed by
Mathew Sutcliffe
parent
30b5e5dade
commit
aa96731143
@@ -158,9 +158,9 @@ namespace BlackCore
|
||||
// round robin for load balancing
|
||||
// remark: Don't use QThread to run network operations in the background
|
||||
// see http://qt-project.org/doc/qt-4.7/qnetworkaccessmanager.html
|
||||
QUrl url(m_setup.get().vatsimDataFileUrls().getRandomUrl());
|
||||
if (url.isEmpty()) { return; }
|
||||
Q_ASSERT_X(sApp, Q_FUNC_INFO, "Missing application");
|
||||
const QUrl url(sApp->getGlobalSetup().vatsimDataFileUrls().getRandomUrl());
|
||||
if (url.isEmpty()) { return; }
|
||||
sApp->getFromNetwork(url, { this, &CVatsimDataFileReader::ps_parseVatsimFile});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user