diff options
author | Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> | 2023-03-07 06:00:17 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-07 11:34:11 +0000 |
commit | 54a1ec2f1007e27de126d57e83b9ddc10628474f (patch) | |
tree | 8296f378b2206e3221baacc8658fb923d9b6f8b8 /Userland/Applications | |
parent | 59752807c4fb60d7d0480d7f7b7d73c2a3bb4f58 (diff) | |
download | serenity-54a1ec2f1007e27de126d57e83b9ddc10628474f.zip |
Browser: Handle close event in WebContentView
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/Browser/Tab.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/Tab.cpp b/Userland/Applications/Browser/Tab.cpp index 8e580de389..587a26d334 100644 --- a/Userland/Applications/Browser/Tab.cpp +++ b/Userland/Applications/Browser/Tab.cpp @@ -468,6 +468,10 @@ Tab::Tab(BrowserWindow& window) go_forward(); }; + view().on_close = [this] { + on_tab_close_request(*this); + }; + m_tab_context_menu = GUI::Menu::construct(); m_tab_context_menu->add_action(GUI::CommonActions::make_reload_action([this](auto&) { reload(); |