diff --git a/Userland/DevTools/SQLStudio/MainWidget.cpp b/Userland/DevTools/SQLStudio/MainWidget.cpp index c3ae47c768..2476d1a38a 100644 --- a/Userland/DevTools/SQLStudio/MainWidget.cpp +++ b/Userland/DevTools/SQLStudio/MainWidget.cpp @@ -351,7 +351,7 @@ void MainWidget::open_new_script() void MainWidget::open_script_from_file(LexicalPath const& file_path) { - auto& editor = m_tab_widget->add_tab(String::from_deprecated_string(file_path.title()).release_value_but_fixme_should_propagate_errors()); + auto& editor = m_tab_widget->add_tab(String::from_utf8(file_path.title()).release_value_but_fixme_should_propagate_errors()); if (auto result = editor.open_script_from_file(file_path); result.is_error()) { GUI::MessageBox::show_error(window(), DeprecatedString::formatted("Failed to open {}\n{}", file_path, result.error())); diff --git a/Userland/DevTools/SQLStudio/ScriptEditor.cpp b/Userland/DevTools/SQLStudio/ScriptEditor.cpp index 14946f9ed0..410866adb8 100644 --- a/Userland/DevTools/SQLStudio/ScriptEditor.cpp +++ b/Userland/DevTools/SQLStudio/ScriptEditor.cpp @@ -72,7 +72,7 @@ ErrorOr ScriptEditor::save_as() auto parent = static_cast(parent_widget()); if (parent) - parent->set_tab_title(*this, String::from_deprecated_string(lexical_path.title()).release_value_but_fixme_should_propagate_errors()); + parent->set_tab_title(*this, String::from_utf8(lexical_path.title()).release_value_but_fixme_should_propagate_errors()); document().set_unmodified(); return true;