mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibGUI+Userland: Port TabWidget set_tab_title to new string
This commit is contained in:
parent
4f08a05a3b
commit
66402b0666
Notes:
sideshowbarker
2024-07-16 22:51:11 +09:00
Author: https://github.com/krkk
Commit: 66402b0666
Pull-request: https://github.com/SerenityOS/serenity/pull/17800
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/awesomekling
6 changed files with 7 additions and 7 deletions
|
@ -104,7 +104,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, Vector<NonnullR
|
|||
if (GUI::InputBox::show(window(), new_name, DeprecatedString::formatted("New name for '{}'", sheet.name()), "Rename sheet"sv) == GUI::Dialog::ExecResult::OK) {
|
||||
sheet.set_name(new_name);
|
||||
sheet.update();
|
||||
m_tab_widget->set_tab_title(static_cast<GUI::Widget&>(*m_tab_context_menu_sheet_view), new_name);
|
||||
m_tab_widget->set_tab_title(static_cast<GUI::Widget&>(*m_tab_context_menu_sheet_view), String::from_deprecated_string(new_name).release_value_but_fixme_should_propagate_errors());
|
||||
}
|
||||
});
|
||||
m_tab_context_menu->add_action(*m_rename_action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue