mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:57:47 +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:
parent
bbf6847d50
commit
102065a8a9
6 changed files with 43 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue