diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-05-14 20:24:54 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-15 06:55:41 +0200 |
commit | bde96640acdd49473b1cd55f252302ef8bb15b66 (patch) | |
tree | 01f5c3a3f2e13fd18e7b972b7d2e43662439f903 /Userland/Applications | |
parent | 4de99d553ebe072a48c5a5eea4a03b4c9327c1d1 (diff) | |
download | serenity-bde96640acdd49473b1cd55f252302ef8bb15b66.zip |
Spreadsheet: Don't release the file buffer when importing CSV files
CSVImportDialogPage takes and holds a StringView meaning that the data
was dropped instantly and displayed garbage instead.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/Spreadsheet/ImportDialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Spreadsheet/ImportDialog.cpp b/Userland/Applications/Spreadsheet/ImportDialog.cpp index 849206fcc6..8cb8a6bd39 100644 --- a/Userland/Applications/Spreadsheet/ImportDialog.cpp +++ b/Userland/Applications/Spreadsheet/ImportDialog.cpp @@ -186,7 +186,7 @@ ErrorOr<Vector<NonnullRefPtr<Sheet>>, DeprecatedString> ImportDialog::make_and_r auto contents_or_error = file.read_until_eof(); if (contents_or_error.is_error()) return DeprecatedString::formatted("{}", contents_or_error.release_error()); - CSVImportDialogPage page { contents_or_error.release_value() }; + CSVImportDialogPage page { contents_or_error.value() }; wizard->replace_page(page.page()); auto result = wizard->exec(); |