Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2015-09-03 17:14:14 +0300
committerOlivier Goffart <ogoffart@woboq.com>2015-09-03 17:19:53 +0300
commite49a8a9ffe4bdfc9f7f8d509c00c5de001c96210 (patch)
tree51b372b9765ba512e9678b89b04d2bd8bb92f764 /src/gui/sslerrordialog.cpp
parentb6e080220315591ce8df7fdbb8a4376d3ce91fa8 (diff)
SSL Certificate Error Dialog: show account name #3729
Change the wording of the certificate error dialog to include the account URL and be a bit more accurate. (Do not mention "SSL" in user facing messages)
Diffstat (limited to 'src/gui/sslerrordialog.cpp')
-rw-r--r--src/gui/sslerrordialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/sslerrordialog.cpp b/src/gui/sslerrordialog.cpp
index ec8acd952..21a420691 100644
--- a/src/gui/sslerrordialog.cpp
+++ b/src/gui/sslerrordialog.cpp
@@ -63,7 +63,7 @@ SslErrorDialog::SslErrorDialog(AccountPtr account, QWidget *parent) :
{
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
_ui->setupUi( this );
- setWindowTitle( tr("SSL Connection") );
+ setWindowTitle( tr("Untrusted Certificate") );
QPushButton *okButton =
_ui->_dialogButtonBox->button( QDialogButtonBox::Ok );
QPushButton *cancelButton =
@@ -131,8 +131,9 @@ bool SslErrorDialog::checkFailingCertsKnown( const QList<QSslError> &errors )
msg += QL("<link rel='stylesheet' type='text/css' href='format.css'>");
msg += QL("</head><body>");
+ auto host = _account->url().host();
+ msg += QL("<h3>") + tr("Cannot connect securely to <i>%1</i>:").arg(host) + QL("</h3>");
// loop over the unknown certs and line up their errors.
- msg += QL("<h3>") + tr("Warnings about current SSL Connection:") + QL("</h3>");
msg += QL("<div id=\"ca_errors\">");
foreach( const QSslCertificate& cert, _unknownCerts ) {
msg += QL("<div id=\"ca_error\">");