mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
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.
This commit is contained in:
parent
4de99d553e
commit
bde96640ac
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue