From 5c4d130af5fc44a513b174b9c0dec5b5fec13779 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Fri, 5 Aug 2022 01:05:46 +0200 Subject: [PATCH] Browser: Make Refresh action in tab context menu refresh the chosen tab It was sending refresh requests to the current tab instead. --- Userland/Applications/Browser/Tab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/Browser/Tab.cpp b/Userland/Applications/Browser/Tab.cpp index 9038c75936..c8f19f5ca1 100644 --- a/Userland/Applications/Browser/Tab.cpp +++ b/Userland/Applications/Browser/Tab.cpp @@ -377,7 +377,7 @@ Tab::Tab(BrowserWindow& window) m_tab_context_menu = GUI::Menu::construct(); m_tab_context_menu->add_action(GUI::CommonActions::make_reload_action([this](auto&) { - this->window().reload_action().activate(); + reload(); })); m_tab_context_menu->add_action(GUI::CommonActions::make_close_tab_action([this](auto&) { on_tab_close_request(*this);