summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-13 07:18:06 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-13 07:18:20 +0200
commit4353f75e9c98664d214ed22ac551670aab158442 (patch)
tree32386f191308d6f601f1a96d9d91686792cfc310 /src/ui
parent00b9e0349b670255f0c487cace27c16900ad6a5d (diff)
DocumentWidget: Fixed appearance of Trust button
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 448398b1..49ac9fb5 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2843,9 +2843,9 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
2843 const char *unchecked = red_ColorEscape "\u2610"; 2843 const char *unchecked = red_ColorEscape "\u2610";
2844 const char *checked = green_ColorEscape "\u2611"; 2844 const char *checked = green_ColorEscape "\u2611";
2845 const iBool haveFingerprint = (d->certFlags & haveFingerprint_GmCertFlag) != 0; 2845 const iBool haveFingerprint = (d->certFlags & haveFingerprint_GmCertFlag) != 0;
2846 const iBool canTrust = 2846 const int requiredForTrust = (available_GmCertFlag | haveFingerprint_GmCertFlag |
2847 (d->certFlags == (available_GmCertFlag | haveFingerprint_GmCertFlag | 2847 timeVerified_GmCertFlag);
2848 timeVerified_GmCertFlag /* | domainVerified_GmCertFlag*/)); 2848 const iBool canTrust = ((d->certFlags & requiredForTrust) == requiredForTrust);
2849 const iRecentUrl *recent = findUrl_History(d->mod.history, d->mod.url); 2849 const iRecentUrl *recent = findUrl_History(d->mod.history, d->mod.url);
2850 const iString *meta = &d->sourceMime; 2850 const iString *meta = &d->sourceMime;
2851 if (recent && recent->cachedResponse) { 2851 if (recent && recent->cachedResponse) {