1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Download manager now using global networkManager to be able download

content from pages requires http authorization or sites with SSL cert in
exceptions
This commit is contained in:
nowrep 2011-03-20 17:42:56 +01:00
parent 24626ed31f
commit 1ad4942e2f
2 changed files with 4 additions and 2 deletions

View File

@ -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");

View File

@ -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;