diff options
Diffstat (limited to 'client/browser/src/mainwindow.cpp')
-rw-r--r-- | client/browser/src/mainwindow.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/browser/src/mainwindow.cpp b/client/browser/src/mainwindow.cpp index 40a02ab5..a1f9eaf2 100644 --- a/client/browser/src/mainwindow.cpp +++ b/client/browser/src/mainwindow.cpp @@ -14,6 +14,8 @@ #include <QTabWidget> #include <QWebView> #include <QLineEdit> +#include <QNetworkReply> +#include <QSslError> #include "qtermwidget.h" @@ -97,6 +99,10 @@ MainWindow::MainWindow(QWidget *parent) connect(m_web,SIGNAL(loadProgress(int)),this,SLOT(slotWebLoadProgress(int))); connect(m_web,SIGNAL(urlChanged(const QUrl&)),this, SLOT(slotUrlChanged(const QUrl&))); + // Ignore SSL errors. + connect(m_web->page()->networkAccessManager(), + SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError> &)), this, + SLOT(slotSslErrors(QNetworkReply*))); // Process signals connect(m_process,SIGNAL(started()),this,SLOT(slotProcessStarted())); @@ -234,6 +240,11 @@ void MainWindow::slotUrlChanged(const QUrl &url) m_webBar->setText(url.toString()); } +void MainWindow::slotSslErrors(QNetworkReply* reply) +{ + reply->ignoreSslErrors(); +} + void MainWindow::slotProcessStarted() { print(tr("Lanzado satisfactoriamente.")); |