summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-12-01 15:24:30 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-12-01 15:24:30 (GMT)
commitc06c4d264aca4e252495181a8de01960abad983f (patch)
tree617df261d04dd0acea3a93f2198361d0de894f25 /Swift/QtUI
parent2aaf52c6b175533b3ee9de5d603dfaa152165d04 (diff)
downloadswift-c06c4d264aca4e252495181a8de01960abad983f.zip
swift-c06c4d264aca4e252495181a8de01960abad983f.tar.bz2
Missing translation string
Change-Id: Id18f8edb422830ef3bce4f1fe7b2524a53e4b74f
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtLoginWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp
index d1fac1e..c27edfb 100644
--- a/Swift/QtUI/QtLoginWindow.cpp
+++ b/Swift/QtUI/QtLoginWindow.cpp
@@ -514,25 +514,25 @@ void QtLoginWindow::resizeEvent(QResizeEvent*) {
}
void QtLoginWindow::moveEvent(QMoveEvent*) {
emit geometryChanged();
}
bool QtLoginWindow::askUserToTrustCertificatePermanently(const std::string& message, const std::vector<Certificate::ref>& certificates) {
QMessageBox dialog(this);
dialog.setText(tr("The certificate presented by the server is not valid."));
dialog.setInformativeText(P2QSTRING(message) + "\n\n" + tr("Would you like to permanently trust this certificate? This must only be done if you know it is correct."));
- dialog.addButton("Show Certificate", QMessageBox::HelpRole);
+ dialog.addButton(tr("Show Certificate"), QMessageBox::HelpRole);
dialog.addButton(QMessageBox::Yes);
dialog.addButton(QMessageBox::No);
dialog.setDefaultButton(QMessageBox::No);
while (true) {
int result = dialog.exec();
if (result == QMessageBox::Yes || result == QMessageBox::No) {
return result == QMessageBox::Yes;
}
// FIXME: This isn't very nice, because the dialog disappears every time. We actually need a real
// dialog with a custom button.
QtMainWindow::openCertificateDialog(certificates, &dialog);
}