diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-03-10 18:55:52 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-16 09:58:42 +0100 |
commit | 797968c310d3b13f74968ba292e0b360d6d2d9c2 (patch) | |
tree | cc1a1bc5f52a9ce43d443d5630aa0da15e4b643b /Userland/Applications/Browser/BrowserWindow.cpp | |
parent | 5fed25ca9aa014372ccfbb79accb49663fc449e2 (diff) | |
download | serenity-797968c310d3b13f74968ba292e0b360d6d2d9c2.zip |
LibGUI+Userland: Make TabWidget::*add_tab() take title using new string
Diffstat (limited to 'Userland/Applications/Browser/BrowserWindow.cpp')
-rw-r--r-- | Userland/Applications/Browser/BrowserWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp index ab39e65f9e..32f502e064 100644 --- a/Userland/Applications/Browser/BrowserWindow.cpp +++ b/Userland/Applications/Browser/BrowserWindow.cpp @@ -567,7 +567,7 @@ void BrowserWindow::set_window_title_for_tab(Tab const& tab) void BrowserWindow::create_new_tab(URL url, bool activate) { - auto& new_tab = m_tab_widget->add_tab<Browser::Tab>("New tab", *this); + auto& new_tab = m_tab_widget->add_tab<Browser::Tab>("New tab"_short_string, *this); m_tab_widget->set_bar_visible(!is_fullscreen() && m_tab_widget->children().size() > 1); |