about summary refs log tree commit diff stats
path: root/xxxterm.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-08-04 18:05:27 +0000
committerMarco Peereboom <marco@conformal.com>2011-08-04 18:05:27 +0000
commit4b041b4cc745d0f9bbfcbc90ab0d39fe5a5621cb (patch)
tree1f5ae1b62114d3117d57c15419aaf44906170305 /xxxterm.c
parentc9019bd82bba6073c0c18ea8373ee32009fbf1a9 (diff)
downloadxombrero-4b041b4cc745d0f9bbfcbc90ab0d39fe5a5621cb.tar.gz
when a cert is saved always blue the address bar.
Diffstat (limited to 'xxxterm.c')
-rw-r--r--xxxterm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 7ef7641..38f37e4 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -5860,6 +5860,11 @@ show_ca_status(struct tab *t, const char *uri)
 	if (message && (soup_message_get_flags(message) &
 	    SOUP_MESSAGE_CERTIFICATE_TRUSTED)) {
 		col_str = XT_COLOR_GREEN;
+
+		/* see if we need to override green */
+		r = load_compare_cert(t, NULL);
+		if (r == 0)
+			col_str = XT_COLOR_BLUE;
 		goto done;
 	} else {
 		r = load_compare_cert(t, NULL);
@@ -6209,13 +6214,14 @@ notify_load_status_cb(WebKitWebView* wview, GParamSpec* pspec, struct tab *t)
 		if (t->styled)
 			apply_style(t);
 
-		show_ca_status(t, uri);
 
 		/* we know enough to autosave the session */
 		if (session_autosave) {
 			a.s = NULL;
 			save_tabs(t, &a);
 		}
+
+		show_ca_status(t, uri);
 		break;
 
 	case WEBKIT_LOAD_FIRST_VISUALLY_NON_EMPTY_LAYOUT: