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.
This commit is contained in:
Linus Groh 2020-06-30 20:11:35 +01:00 committed by Andreas Kling
parent 14477eb565
commit 1cffa28f95
Notes: sideshowbarker 2024-07-19 05:18:53 +09:00

View file

@ -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);