diff --git a/src/downloads/downloadmanager.cpp b/src/downloads/downloadmanager.cpp index dbd0d5a5e..ff570ec02 100644 --- a/src/downloads/downloadmanager.cpp +++ b/src/downloads/downloadmanager.cpp @@ -21,6 +21,7 @@ #include "downloadoptionsdialog.h" #include "downloaditem.h" #include "ecwin7.h" +#include "networkmanager.h" DownloadManager::DownloadManager(QWidget* parent) : QWidget(parent) @@ -35,7 +36,7 @@ DownloadManager::DownloadManager(QWidget* parent) : QWidget::move( (screen.width()-size.width())/2, (screen.height()-size.height())/2 ); m_iconProvider = new QFileIconProvider(); - m_networkManager = new QNetworkAccessManager(); + m_networkManager = mApp->networkManager(); QSettings settings(mApp->getActiveProfil()+"settings.ini", QSettings::IniFormat); settings.beginGroup("DownloadManager"); diff --git a/src/downloads/downloadmanager.h b/src/downloads/downloadmanager.h index 82f05463f..faf7d6d58 100644 --- a/src/downloads/downloadmanager.h +++ b/src/downloads/downloadmanager.h @@ -44,6 +44,7 @@ namespace Ui { class DownloadItem; class EcWin7; +class NetworkManager; class DownloadManager : public QWidget { Q_OBJECT @@ -76,7 +77,7 @@ private: void closeEvent(QCloseEvent* e); Ui::DownloadManager* ui; - QNetworkAccessManager* m_networkManager; + NetworkManager* m_networkManager; QFileIconProvider* m_iconProvider; QString m_lastDownloadPath;