set.setValue("proxyuser",proxyuser->text());
set.setValue("proxypass",proxypass->text());
set.setValue("username",username->text());
+ QDir(::dataDir).mkdir("profile."+key);
if(sslexcept)sslexcept->savesslexcept();
}
QMessageBox::warning(this,tr("Server Probe"),tr("The request finished with an error: %1").arg(rp->errorString()));
}
delete rp;
+ //save
+ sslexcept->savesslexcept();
}
void MConfigDialog::sslErrors(QNetworkReply*rp,const QList<QSslError>&errs)
#include "sslexception.h"
+#include <QDebug>
#include <QDialog>
#include <QDomDocument>
#include <QDomElement>
path=p;
//load...
QFile fd(p);
+ qDebug()<<"loading SSL Exceptions"<<p;
if(fd.open(QIODevice::ReadOnly)){
QDomDocument doc;
if(!doc.setContent(&fd))return;
doc.appendChild(root);
QFile fd(path);
if(fd.open(QIODevice::WriteOnly|QIODevice::Truncate)){
+ qDebug()<<"writing SSL Exceptions"<<path<<sslexcept.size()<<"elements";
fd.write(doc.toByteArray());
fd.close();
}