From f78d2c6a3a286ef27c82b376551f522c12634956 Mon Sep 17 00:00:00 2001 From: konrad Date: Wed, 9 Jun 2010 21:24:32 +0000 Subject: [PATCH] make sure profile directory exists git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@500 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- src/dialogs/configdialog.cpp | 3 +++ src/iface/sslexception.cpp | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/dialogs/configdialog.cpp b/src/dialogs/configdialog.cpp index 431f2dd..4d04e5a 100644 --- a/src/dialogs/configdialog.cpp +++ b/src/dialogs/configdialog.cpp @@ -228,6 +228,7 @@ void MConfigDialog::saveProfile() set.setValue("proxyuser",proxyuser->text()); set.setValue("proxypass",proxypass->text()); set.setValue("username",username->text()); + QDir(::dataDir).mkdir("profile."+key); if(sslexcept)sslexcept->savesslexcept(); } @@ -515,6 +516,8 @@ void MConfigDialog::serverProbe() 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&errs) diff --git a/src/iface/sslexception.cpp b/src/iface/sslexception.cpp index c060d0a..78128a5 100644 --- a/src/iface/sslexception.cpp +++ b/src/iface/sslexception.cpp @@ -12,6 +12,7 @@ #include "sslexception.h" +#include #include #include #include @@ -23,6 +24,7 @@ MSslExceptions::MSslExceptions(QString p) path=p; //load... QFile fd(p); + qDebug()<<"loading SSL Exceptions"<