diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-03-20 19:52:00 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-21 09:39:49 +0000 |
commit | f8b6369c238a57abb2fb3f5b093c5b629070e1f4 (patch) | |
tree | 7faaf422c0727e429f19c02fed969e928e39446a /Ladybird/Tab.cpp | |
parent | a77daf77bdc44d8150f3da698dcf3aa1f4917347 (diff) | |
download | serenity-f8b6369c238a57abb2fb3f5b093c5b629070e1f4.zip |
WebContent+Everywhere: Add a WebContent IPC to activate a tab
Diffstat (limited to 'Ladybird/Tab.cpp')
-rw-r--r-- | Ladybird/Tab.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Ladybird/Tab.cpp b/Ladybird/Tab.cpp index 1c5ac9349f..3da6992bf0 100644 --- a/Ladybird/Tab.cpp +++ b/Ladybird/Tab.cpp @@ -64,6 +64,10 @@ Tab::Tab(BrowserWindow* window, StringView webdriver_content_ipc_path) m_toolbar->addAction(m_home_action); m_toolbar->addWidget(m_location_edit); + QObject::connect(m_view, &WebContentView::activate_tab, [this] { + m_window->activate_tab(tab_index()); + }); + QObject::connect(m_view, &WebContentView::close, [this] { m_window->close_tab(tab_index()); }); |