From bfdc7d39485bbef90a65b79f6c3b0986133f530d Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Fri, 19 Jun 2020 21:13:32 +0200 Subject: Reworks TLS trust to enable symmetry between HTTPS and Gemini --- src/mainwindow.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 02fb0ed..2e96aa9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -148,7 +148,11 @@ void MainWindow::saveSettings() global_settings.endGroup(); global_settings.beginGroup("Trusted Servers"); - global_trust.save(global_settings); + global_gemini_trust.save(global_settings); + global_settings.endGroup(); + + global_settings.beginGroup("Trusted HTTPS Servers"); + global_https_trust.save(global_settings); global_settings.endGroup(); global_settings.beginGroup("Theme"); @@ -252,12 +256,14 @@ void MainWindow::on_actionSettings_triggered() dialog.setGeminiStyle(this->current_style); dialog.setProtocols(this->protocols); dialog.setOptions(global_options); - dialog.setSslTrust(global_trust); + dialog.setGeminiSslTrust(global_gemini_trust); + dialog.setHttpsSslTrust(global_https_trust); if(dialog.exec() != QDialog::Accepted) return; - global_trust = dialog.sslTrust(); + global_gemini_trust = dialog.geminiSslTrust(); + global_https_trust = dialog.httpsSslTrust(); global_options = dialog.options(); this->protocols = dialog.protocols(); -- cgit v1.2.3