[SSLManager] Fixed saving IgnoreAllWarnings option.

Closes #890
remotes/origin/falkon
nowrep 13 years ago
parent 972af5552d
commit 3abfaed452
  1. 10
      src/lib/network/networkmanager.cpp
  2. 4
      src/lib/network/networkmanager.h
  3. 1
      src/lib/preferences/sslmanager.cpp

@ -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
{
return m_proxyFactory;

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

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

Loading…
Cancel
Save