summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-13 07:36:43 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-13 07:39:24 +0200
commit78de5577096bd81d6da152d9f819851c2f8ef260 (patch)
tree135a102e4ed7e11988f6d608bf4a8593723db0dd /src/ui
parent4353f75e9c98664d214ed22ac551670aab158442 (diff)
DocumentWidget: Trust button shown only when untrusted
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 49ac9fb5..f2553632 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2845,7 +2845,8 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
2845 const iBool haveFingerprint = (d->certFlags & haveFingerprint_GmCertFlag) != 0; 2845 const iBool haveFingerprint = (d->certFlags & haveFingerprint_GmCertFlag) != 0;
2846 const int requiredForTrust = (available_GmCertFlag | haveFingerprint_GmCertFlag | 2846 const int requiredForTrust = (available_GmCertFlag | haveFingerprint_GmCertFlag |
2847 timeVerified_GmCertFlag); 2847 timeVerified_GmCertFlag);
2848 const iBool canTrust = ((d->certFlags & requiredForTrust) == requiredForTrust); 2848 const iBool canTrust = ~d->certFlags & trusted_GmCertFlag &&
2849 ((d->certFlags & requiredForTrust) == requiredForTrust);
2849 const iRecentUrl *recent = findUrl_History(d->mod.history, d->mod.url); 2850 const iRecentUrl *recent = findUrl_History(d->mod.history, d->mod.url);
2850 const iString *meta = &d->sourceMime; 2851 const iString *meta = &d->sourceMime;
2851 if (recent && recent->cachedResponse) { 2852 if (recent && recent->cachedResponse) {