diff options
Diffstat (limited to '')
-rw-r--r-- | src/ui/settings/SettingsGeneral.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/settings/SettingsGeneral.cpp b/src/ui/settings/SettingsGeneral.cpp index ede15182..c0e3d75f 100644 --- a/src/ui/settings/SettingsGeneral.cpp +++ b/src/ui/settings/SettingsGeneral.cpp @@ -45,6 +45,11 @@ GeneralTab::GeneralTab(GpgME::GpgContext *ctx, QWidget *parent) serverBoxLayout->addWidget(serverSelectBox); serverBoxLayout->addWidget(new QLabel( tr("Server that provides short key and key exchange services"))); + connect(serverSelectBox, QOverload<const QString&>::of(&QComboBox::currentTextChanged), + this, [&](const QString ¤t) -> void { + settings.setValue("general/currentGpgfrontendServer", current); + }); + serverBox->setLayout(serverBoxLayout); /***************************************** @@ -306,6 +311,8 @@ void GeneralTab::slotGetServiceToken() { // Auto update settings settings.setValue("general/serviceToken", serviceToken); serviceTokenLabel->setText(serviceToken); + QMessageBox::information(this, tr("Notice"), + tr("Succeed in getting service token")); } else { QMessageBox::critical(this, tr("Error"), tr("There is a problem with the communication with the server")); } |