Changeset View
Changeset View
Standalone View
Standalone View
src/core/ksslcertificatemanager.cpp
Context not available. | |||||
247 | } | 247 | } | ||
---|---|---|---|---|---|
248 | 248 | | |||
249 | QString certFilename = userCertDir + QString::fromLatin1(in.certHash); | 249 | QString certFilename = userCertDir + QString::fromLatin1(in.certHash); | ||
250 | //qDebug() << certFilename; | 250 | | ||
251 | QFile certFile(certFilename); | 251 | QFile certFile(certFilename); | ||
252 | if (certFile.open(QIODevice::ReadOnly)) { | 252 | if (!QDir().mkpath(userCertDir) || certFile.open(QIODevice::ReadOnly)) { | ||
253 | return false; | 253 | return false; | ||
254 | } | 254 | } | ||
255 | if (!certFile.open(QIODevice::WriteOnly)) { | 255 | if (!certFile.open(QIODevice::WriteOnly)) { | ||
Context not available. |