1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:37:34 +00:00

Spreadsheet: Show the error (if any) in csv import dialog's preview

...and don't try to read from a CSV that has errors.
Fixes #5942.
This commit is contained in:
AnotherTest 2021-03-25 10:25:24 +04:30 committed by Andreas Kling
parent bbf6847d50
commit 102065a8a9
6 changed files with 43 additions and 14 deletions

View file

@ -66,6 +66,13 @@ private:
RefPtr<GUI::CheckBox> m_trim_leading_field_spaces_check_box;
RefPtr<GUI::CheckBox> m_trim_trailing_field_spaces_check_box;
RefPtr<GUI::TableView> m_data_preview_table_view;
RefPtr<GUI::Label> m_data_preview_error_label;
RefPtr<GUI::StackWidget> m_data_preview_widget;
Vector<String> m_quote_escape_items {
// Note: Keep in sync with Reader::ParserTraits::QuoteEscape.
"Repeat",
"Backslash",
};
};
struct ImportDialog {