diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-03-25 10:25:24 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-28 11:46:47 +0200 |
commit | 102065a8a9e0aa2a11821931f7f497c4afae9ec1 (patch) | |
tree | e1ed65fa782b0c51441d32570ac7ce35adeee50c /Userland/Applications/Spreadsheet/csv_import.gml | |
parent | bbf6847d50709a2088747bce868f4ee30faa73c7 (diff) | |
download | serenity-102065a8a9e0aa2a11821931f7f497c4afae9ec1.zip |
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.
Diffstat (limited to 'Userland/Applications/Spreadsheet/csv_import.gml')
-rw-r--r-- | Userland/Applications/Spreadsheet/csv_import.gml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Userland/Applications/Spreadsheet/csv_import.gml b/Userland/Applications/Spreadsheet/csv_import.gml index d39b59aaad..be447f5fa3 100644 --- a/Userland/Applications/Spreadsheet/csv_import.gml +++ b/Userland/Applications/Spreadsheet/csv_import.gml @@ -168,8 +168,16 @@ margins: [10, 20, 10, 10] } - @GUI::TableView { - name: "data_preview_table_view" + @GUI::StackWidget { + name: "data_preview_widget" + + @GUI::TableView { + name: "data_preview_table_view" + } + @GUI::Label { + name: "data_preview_error_label" + word_wrap: true + } } } } |