From 016a4eff9ee552bd8d60564aaf1699242da6eab9 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 3 Jan 2021 08:38:42 +0200 Subject: Updating the navbar URL when opening tabs --- res/about/version.gmi | 2 ++ src/ui/documentwidget.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/res/about/version.gmi b/res/about/version.gmi index 12fb63f7..c1f7c8b3 100644 --- a/res/about/version.gmi +++ b/res/about/version.gmi @@ -14,6 +14,8 @@ * Fixed parts of text disappearing when the glyph cache fills up. ## 1.0.2 +* Fixed URL input field showing the wrong URL when opening tabs in the background. +* Fixed trusting a renewed server certificate when multiple tabs are open. * Fixed opening sidebar feed entries in new/background tab with modifier keys. * Fixed editing identity notes. The entered new notes were not being applied. * Server certificate domain name check accepts a matching CN even when SAN doesn't match. diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index b6bfe948..e3e9ce61 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -1704,7 +1704,7 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) updateVisible_DocumentWidget_(d); updateSideIconBuf_DocumentWidget_(d); updateOutline_DocumentWidget_(d); - postCommandf_App("document.changed url:%s", cstr_String(d->mod.url)); + postCommandf_App("document.changed doc:%p url:%s", d, cstr_String(d->mod.url)); /* Check for a pending goto. */ if (!isEmpty_String(&d->pendingGotoHeading)) { scrollToHeading_DocumentWidget_(d, cstr_String(&d->pendingGotoHeading)); @@ -3278,7 +3278,7 @@ void setUrlFromCache_DocumentWidget(iDocumentWidget *d, const iString *url, iBoo } } else { - postCommandf_App("document.changed url:%s", cstr_String(d->mod.url)); + postCommandf_App("document.changed doc:%p url:%s", d, cstr_String(d->mod.url)); } } -- cgit v1.2.3