From 1cffa28f955b165b758497546a78e6b3bf24f4b1 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 30 Jun 2020 20:11:35 +0100 Subject: [PATCH] Browser: Unset location bar icon on load start This avoids having a stale icon from a previous page load in the location box if a subsequently visited page doesn't trigger an icon change. --- Applications/Browser/Tab.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp index 733595e4fb..aed2949e66 100644 --- a/Applications/Browser/Tab.cpp +++ b/Applications/Browser/Tab.cpp @@ -146,6 +146,7 @@ Tab::Tab() }; m_page_view->on_load_start = [this](auto& url) { + m_location_box->set_icon(nullptr); m_location_box->set_text(url.to_string()); if (m_should_push_loads_to_history) m_history.push(url);