Downloader now uses singleton access manager.
This commit is contained in:
parent
0cdc250d54
commit
d2fda0560d
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
Downloader::Downloader(QObject *parent)
|
||||
: QObject(parent), m_activeReply(NULL), m_downloadManager(new SilentNetworkAccessManager(this)),
|
||||
: QObject(parent), m_activeReply(NULL), m_downloadManager(SilentNetworkAccessManager::instance()),
|
||||
m_timer(new QTimer(this)), m_customHeaders(QHash<QByteArray, QByteArray>()), m_lastOutputData(QByteArray()),
|
||||
m_lastOutputError(QNetworkReply::NoError), m_lastContentType(QVariant()) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user