mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
[Fix] Certificates from custom path disappearing on preferences saving.
This commit is contained in:
parent
1e6b9a915d
commit
ff4e5b74d4
|
@ -1,5 +1,6 @@
|
|||
Version 1.4.1
|
||||
* not yet released
|
||||
* fixed certificates from custom path disappearing on saving preferences
|
||||
* fixed showing empty back/forward history menu upon restoring session
|
||||
* fixed duplicating current url in history when restoring session
|
||||
* fixed instantly showing popup when clicking on back/forward button
|
||||
|
|
|
@ -270,7 +270,6 @@ MainApplication::MainApplication(int &argc, char** argv)
|
|||
connect(qupzilla, SIGNAL(startingCompleted()), this, SLOT(restoreCursor()));
|
||||
|
||||
loadSettings();
|
||||
networkManager()->loadCertificates();
|
||||
|
||||
m_plugins = new PluginProxy;
|
||||
|
||||
|
|
|
@ -131,6 +131,8 @@ void NetworkManager::loadSettings()
|
|||
QSslSocket::setDefaultCaCertificates(QSslSocket::systemCaCertificates());
|
||||
#endif
|
||||
|
||||
loadCertificates();
|
||||
|
||||
m_proxyFactory->loadSettings();
|
||||
}
|
||||
|
||||
|
@ -623,8 +625,9 @@ void NetworkManager::loadCertificates()
|
|||
m_ignoreAllWarnings = settings.value("IgnoreAllSSLWarnings", false).toBool();
|
||||
settings.endGroup();
|
||||
|
||||
//CA Certificates
|
||||
// CA Certificates
|
||||
m_caCerts = QSslSocket::defaultCaCertificates();
|
||||
|
||||
foreach (const QString &path, m_certPaths) {
|
||||
#ifdef Q_OS_WIN
|
||||
// Used from Qt 4.7.4 qsslcertificate.cpp and modified because QSslCertificate::fromPath
|
||||
|
@ -645,7 +648,7 @@ void NetworkManager::loadCertificates()
|
|||
m_caCerts += QSslCertificate::fromPath(path + "/*.crt", QSsl::Pem, QRegExp::Wildcard);
|
||||
#endif
|
||||
}
|
||||
//Local Certificates
|
||||
// Local Certificates
|
||||
#ifdef Q_OS_WIN
|
||||
QDirIterator it_(mApp->currentProfilePath() + "certificates", QDir::Files, QDirIterator::FollowSymlinks | QDirIterator::Subdirectories);
|
||||
while (it_.hasNext()) {
|
||||
|
@ -660,7 +663,7 @@ void NetworkManager::loadCertificates()
|
|||
}
|
||||
}
|
||||
#else
|
||||
m_localCerts += QSslCertificate::fromPath(mApp->currentProfilePath() + "certificates/*.crt", QSsl::Pem, QRegExp::Wildcard);
|
||||
m_localCerts = QSslCertificate::fromPath(mApp->currentProfilePath() + "certificates/*.crt", QSsl::Pem, QRegExp::Wildcard);
|
||||
#endif
|
||||
|
||||
QSslSocket::setDefaultCaCertificates(m_caCerts + m_localCerts);
|
||||
|
|
Loading…
Reference in New Issue
Block a user