diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-05-14 19:38:08 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-15 06:42:10 +0200 |
commit | b7558a5ce43c62efb357863f709d942daf9aa218 (patch) | |
tree | 6ee78cf24bf91569189b3383814dd99a454ece95 /Userland/DevTools | |
parent | 945f05ed76b23e8b201ce0a758d5318723440d36 (diff) | |
download | serenity-b7558a5ce43c62efb357863f709d942daf9aa218.zip |
LibGUI+Userland: Store column names in JsonArrayModel as String
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/SQLStudio/MainWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/SQLStudio/MainWidget.cpp b/Userland/DevTools/SQLStudio/MainWidget.cpp index d93d051bb2..a82f66bd21 100644 --- a/Userland/DevTools/SQLStudio/MainWidget.cpp +++ b/Userland/DevTools/SQLStudio/MainWidget.cpp @@ -286,7 +286,7 @@ ErrorOr<void> MainWidget::setup() Vector<GUI::JsonArrayModel::FieldSpec> query_result_fields; for (auto& column_name : m_result_column_names) - query_result_fields.empend(column_name, column_name, Gfx::TextAlignment::CenterLeft); + query_result_fields.empend(column_name, String::from_deprecated_string(column_name).release_value_but_fixme_should_propagate_errors(), Gfx::TextAlignment::CenterLeft); auto query_results_model = GUI::JsonArrayModel::create("{}", move(query_result_fields)); m_query_results_table_view->set_model(MUST(GUI::SortingProxyModel::create(*query_results_model))); |