diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-12-07 00:18:36 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-12-07 00:18:36 +0100 |
commit | c8279e0c4a76db65547e6c711b8e7717e0d28059 (patch) | |
tree | e9e42a5cca514d600094afe8d4c03af2bd82ce23 /src/networkaccessmanager.cpp | |
parent | Fixed crash when closing rekonq with more than one tab (diff) | |
download | rekonq-c8279e0c4a76db65547e6c711b8e7717e0d28059.tar.xz |
No more QmessageBox here..
Diffstat (limited to 'src/networkaccessmanager.cpp')
-rw-r--r-- | src/networkaccessmanager.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp index 79549d25..c5967d2a 100644 --- a/src/networkaccessmanager.cpp +++ b/src/networkaccessmanager.cpp @@ -23,15 +23,16 @@ #include "networkaccessmanager.h" #include "browserapplication.h" #include "browsermainwindow.h" + #include "ui_passworddialog.h" #include "ui_proxy.h" // KDE Includes #include <KConfig> +#include <KMessageBox> // Qt Includes #include <QDialog> -#include <QMessageBox> #include <QStyle> #include <QTextDocument> #include <QAuthenticator> @@ -138,11 +139,9 @@ void NetworkAccessManager::sslErrors(QNetworkReply *reply, const QList<QSslError for (int i = 0; i < error.count(); ++i) errorStrings += error.at(i).errorString(); QString errors = errorStrings.join(QLatin1String("\n")); - int ret = QMessageBox::warning(mainWindow, QCoreApplication::applicationName(), - i18n("SSL Errors:\n\n") + reply->url().toString() + "\n\n" + QString(errors) + "\n\n", - QMessageBox::Yes | QMessageBox::No, - QMessageBox::No); - if (ret == QMessageBox::Yes) + int ret = KMessageBox::warningYesNo( mainWindow, + i18n("SSL Errors:\n\n") + reply->url().toString() + "\n\n" + QString(errors) + "\n\n"); + if (ret == KMessageBox::Yes) reply->ignoreSslErrors(); } #endif |