Skip to content

Commit

Permalink
NetworkAccessManager::sslErrors(): Follow an apparent common practice…
Browse files Browse the repository at this point in the history
… to use QMessageBox::setInformativeText() to put the "Do you want" question
  • Loading branch information
datadiode committed May 15, 2023
1 parent 5e19305 commit c875db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network/networkaccessmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ void NetworkAccessManager::sslErrors(QNetworkReply *reply, const QList<QSslError
QMessageBox msgbox(QMessageBox::Warning,
QCoreApplication::applicationName() + tr(" - SSL Errors"),
tr("<qt>SSL Errors for: <tt>%1</tt>"
"<ul><li>%2</li></ul>\n\n"
"Do you want to ignore these errors?</qt>").arg(reply->url().host()).arg(errors),
"<ul><li>%2</li></ul></qt>").arg(reply->url().host()).arg(errors),
QMessageBox::Yes | QMessageBox::No,
mainWindow);
msgbox.setInformativeText(tr("Do you want to ignore these errors?"));
msgbox.setDefaultButton(QMessageBox::No);
msgbox.setDetailedText(detailedText);
msgbox.setStyleSheet("QPushButton{min-width: 175px;}");
Expand Down

0 comments on commit c875db7

Please sign in to comment.