mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
SQLStudio: Stop lying about string types
This commit is contained in:
parent
e4f627f299
commit
3d1fd17f8b
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 3d1fd17f8b
Pull-request: https://github.com/SerenityOS/serenity/pull/19356
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/krkk ✅
2 changed files with 2 additions and 2 deletions
|
@ -351,7 +351,7 @@ void MainWidget::open_new_script()
|
||||||
|
|
||||||
void MainWidget::open_script_from_file(LexicalPath const& file_path)
|
void MainWidget::open_script_from_file(LexicalPath const& file_path)
|
||||||
{
|
{
|
||||||
auto& editor = m_tab_widget->add_tab<ScriptEditor>(String::from_deprecated_string(file_path.title()).release_value_but_fixme_should_propagate_errors());
|
auto& editor = m_tab_widget->add_tab<ScriptEditor>(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()) {
|
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()));
|
GUI::MessageBox::show_error(window(), DeprecatedString::formatted("Failed to open {}\n{}", file_path, result.error()));
|
||||||
|
|
|
@ -72,7 +72,7 @@ ErrorOr<bool> ScriptEditor::save_as()
|
||||||
|
|
||||||
auto parent = static_cast<GUI::TabWidget*>(parent_widget());
|
auto parent = static_cast<GUI::TabWidget*>(parent_widget());
|
||||||
if (parent)
|
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();
|
document().set_unmodified();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue