summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2023-03-10 20:25:41 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-16 09:58:42 +0100
commit66402b06663f9a54a54ed25dfe9bb307f06528af (patch)
treecdfd1d7151576e2572800d294c48e8f258978c87 /Userland/Applications/Spreadsheet
parent4f08a05a3b55ab47eb550d562b834ce124fbb26b (diff)
downloadserenity-66402b06663f9a54a54ed25dfe9bb307f06528af.zip
LibGUI+Userland: Port TabWidget set_tab_title to new string
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r--Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp b/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp
index 599cbd705a..a663d68633 100644
--- a/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp
+++ b/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp
@@ -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);