diff --git a/src/gui/src/SettingsDialog.cpp b/src/gui/src/SettingsDialog.cpp index dbd3ef27..bcaa2263 100644 --- a/src/gui/src/SettingsDialog.cpp +++ b/src/gui/src/SettingsDialog.cpp @@ -37,8 +37,7 @@ SettingsDialog::SettingsDialog(QWidget* parent, AppConfig& config) : QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint), Ui::SettingsDialogBase(), m_AppConfig(config), - m_SuppressElevateWarning(false), - m_SuppressEncryptionWarning(false) + m_SuppressElevateWarning(false) { setupUi(this); @@ -69,9 +68,7 @@ SettingsDialog::SettingsDialog(QWidget* parent, AppConfig& config) : m_pCheckBoxEnableCrypto->setChecked(false); } else { - m_SuppressEncryptionWarning = true; m_pCheckBoxEnableCrypto->setChecked(m_AppConfig.getCryptoEnabled()); - m_SuppressEncryptionWarning = false; } } @@ -86,7 +83,6 @@ void SettingsDialog::accept() appConfig().setLanguage(m_pComboLanguage->itemData(m_pComboLanguage->currentIndex()).toString()); appConfig().setElevateMode(m_pCheckBoxElevateMode->isChecked()); appConfig().setAutoHide(m_pCheckBoxAutoHide->isChecked()); - appConfig().setCryptoEnabled(m_pCheckBoxEnableCrypto->isChecked()); appConfig().saveSettings(); QDialog::accept(); } @@ -168,17 +164,5 @@ void SettingsDialog::on_m_pCheckBoxElevateMode_toggled(bool checked) void SettingsDialog::on_m_pCheckBoxEnableCrypto_toggled(bool checked) { - if (checked && !m_SuppressEncryptionWarning) { - int r = QMessageBox::warning( - this, tr("Synergy SSL Encryption"), - tr("Are you sure you want to enable SSL encryption?\n\n" - "This allows Synergy to establish a secure connection, " - "but can slow down the data transfer of clipboard and file."), - QMessageBox::Yes | QMessageBox::No); - - if (r != QMessageBox::Yes) { - m_pCheckBoxEnableCrypto->setChecked(false); - return; - } - } + m_AppConfig.setCryptoEnabled(checked); } diff --git a/src/gui/src/SettingsDialog.h b/src/gui/src/SettingsDialog.h index dc0d1bb2..8ab2e1e0 100644 --- a/src/gui/src/SettingsDialog.h +++ b/src/gui/src/SettingsDialog.h @@ -47,7 +47,6 @@ class SettingsDialog : public QDialog, public Ui::SettingsDialogBase SynergyLocale m_Locale; CoreInterface m_CoreInterface; bool m_SuppressElevateWarning; - bool m_SuppressEncryptionWarning; private slots: void on_m_pCheckBoxEnableCrypto_toggled(bool checked);