aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/ssltrusteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/ssltrusteditor.cpp')
-rw-r--r--src/widgets/ssltrusteditor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/widgets/ssltrusteditor.cpp b/src/widgets/ssltrusteditor.cpp
index e740977..7ae3090 100644
--- a/src/widgets/ssltrusteditor.cpp
+++ b/src/widgets/ssltrusteditor.cpp
@@ -1,12 +1,20 @@
#include "ssltrusteditor.hpp"
#include "ui_ssltrusteditor.h"
+#include "kristall.hpp"
+
SslTrustEditor::SslTrustEditor(QWidget *parent) :
QWidget(parent),
ui(new Ui::SslTrustEditor)
{
ui->setupUi(this);
+ connect( // connect with "this" as context, so the connection will die when the window is destroyed
+ kristall::globals().localization.get(), &Localization::translationChanged,
+ this, [this]() { this->ui->retranslateUi(this); },
+ Qt::DirectConnection
+ );
+
this->ui->trust_level->clear();
this->ui->trust_level->addItem(tr("Trust on first encounter"), QVariant::fromValue<int>(SslTrust::TrustOnFirstUse));
this->ui->trust_level->addItem(tr("Trust everything"), QVariant::fromValue<int>(SslTrust::TrustEverything));