1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[SSLManager] Fixed saving IgnoreAllWarnings option.

Closes #890
This commit is contained in:
nowrep 2013-05-22 14:59:42 +02:00
parent 972af5552d
commit 3abfaed452
3 changed files with 13 additions and 2 deletions

View File

@ -594,6 +594,16 @@ void NetworkManager::addLocalCertificate(const QSslCertificate &cert)
} }
} }
void NetworkManager::setIgnoreAllWarnings(bool state)
{
m_ignoreAllWarnings = state;
}
bool NetworkManager::isIgnoringAllWarnings()
{
return m_ignoreAllWarnings;
}
NetworkProxyFactory* NetworkManager::proxyFactory() const NetworkProxyFactory* NetworkManager::proxyFactory() const
{ {
return m_proxyFactory; return m_proxyFactory;

View File

@ -49,8 +49,8 @@ public:
void setCertificatePaths(const QStringList &paths) { m_certPaths = paths; } void setCertificatePaths(const QStringList &paths) { m_certPaths = paths; }
QStringList certificatePaths() { return m_certPaths; } QStringList certificatePaths() { return m_certPaths; }
void setIgnoreAllWarnings(bool state) { m_ignoreAllWarnings = state; } void setIgnoreAllWarnings(bool state);
bool isIgnoringAllWarnings() { return m_ignoreAllWarnings; } bool isIgnoringAllWarnings();
NetworkProxyFactory* proxyFactory() const; NetworkProxyFactory* proxyFactory() const;

View File

@ -201,6 +201,7 @@ void SSLManager::closeEvent(QCloseEvent* e)
} }
mApp->networkManager()->setCertificatePaths(paths); mApp->networkManager()->setCertificatePaths(paths);
mApp->networkManager()->saveCertificates();
QWidget::closeEvent(e); QWidget::closeEvent(e);
} }