mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +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
|
@ -72,7 +72,7 @@ ErrorOr<bool> ScriptEditor::save_as()
|
|||
|
||||
auto parent = static_cast<GUI::TabWidget*>(parent_widget());
|
||||
if (parent)
|
||||
parent->set_tab_title(*this, lexical_path.title());
|
||||
parent->set_tab_title(*this, String::from_deprecated_string(lexical_path.title()).release_value_but_fixme_should_propagate_errors());
|
||||
|
||||
document().set_unmodified();
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue