Changeset f94ab1d in confclerk_git
- Timestamp:
- 01/23/17 18:59:07 (5 years ago)
- Branches:
- master, qt5
- Children:
- 6984e9d
- Parents:
- 0d41eb2
- Location:
- src/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mainwindow.cpp
r0d41eb2 rf94ab1d 132 132 } 133 133 134 connect(mNetworkAccessManager, SIGNAL(sslErrors(QNetworkReply*, QList<QSslError>)), SLOT(sslErrors(QNetworkReply*, QList<QSslError>))); 134 135 connect(mNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), SLOT(networkQueryFinished(QNetworkReply*))); 135 136 connect(mXmlParser, SIGNAL(parsingScheduleBegin()), conferenceModel, SLOT(newConferenceBegin())); … … 410 411 } 411 412 413 void MainWindow::sslErrors(QNetworkReply *aReply, const QList<QSslError> &errors) { 414 QString errorString; 415 foreach (const QSslError &error, errors) { 416 if (!errorString.isEmpty()) { 417 errorString += ", "; 418 } 419 errorString += error.errorString(); 420 } 421 422 if (QMessageBox::warning( 423 this, 424 QString("SSL errors"), 425 QString("One or more SSL errors have occurred: ") + errorString, 426 QMessageBox::Ignore | QMessageBox::Cancel) == QMessageBox::Ignore) { 427 aReply->ignoreSslErrors(); 428 } else { 429 aReply->abort(); 430 } 431 } 432 412 433 void MainWindow::networkQueryFinished(QNetworkReply *aReply) { 413 434 if (aReply->error() != QNetworkReply::NoError) { -
src/gui/mainwindow.h
r0d41eb2 rf94ab1d 22 22 23 23 #include <QtGui/QMainWindow> 24 #include <QSslError> 24 25 25 26 #include "ui_mainwindow.h" … … 52 53 void onSearchResultChanged(); 53 54 55 void sslErrors(QNetworkReply*,const QList<QSslError> &errors); 54 56 void networkQueryFinished(QNetworkReply*); 55 57 void importFromNetwork(const QString&, int conferenceId);
Note: See TracChangeset
for help on using the changeset viewer.