mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
Spreadsheet: Don't invalidate the model on set_data()
No previous model index will be invalidated afterwards, so avoid invalidating them. Also fixes an issue where committing to an edit with the inline cell editor makes the focused cell switch to A0. Fixes #9677.
This commit is contained in:
parent
1f68b1f768
commit
04f02a5b9e
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ void SheetModel::set_data(const GUI::ModelIndex& index, const GUI::Variant& valu
|
|||
|
||||
auto& cell = m_sheet->ensure({ (size_t)index.column(), (size_t)index.row() });
|
||||
cell.set_data(value.to_string());
|
||||
invalidate();
|
||||
did_update(UpdateFlag::DontInvalidateIndices);
|
||||
}
|
||||
|
||||
void SheetModel::update()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue