mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +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
Notes:
sideshowbarker
2024-07-18 05:05:23 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/04f02a5b9ec Pull-request: https://github.com/SerenityOS/serenity/pull/9688 Issue: https://github.com/SerenityOS/serenity/issues/9677
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…
Reference in a new issue