diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-19 21:13:32 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-19 21:13:32 +0200 |
| commit | bfdc7d39485bbef90a65b79f6c3b0986133f530d (patch) | |
| tree | 7a50b6c9dc372cb302f064940c25826d0e1e07a1 /src/mainwindow.cpp | |
| parent | 63103aa8c7f5b56720da097c73aa99da25841d45 (diff) | |
| download | kristall-bfdc7d39485bbef90a65b79f6c3b0986133f530d.tar.gz | |
Reworks TLS trust to enable symmetry between HTTPS and Gemini
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
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(); |
