mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
Spreadsheet: Force-update the spreadsheet widget after pasting
Just updating the sheet will not cause a widget update.
This commit is contained in:
parent
113da74683
commit
868c315e51
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ int main(int argc, char* argv[])
|
|||
},
|
||||
window));
|
||||
edit_menu.add_action(GUI::CommonActions::make_paste_action([&](auto&) {
|
||||
ScopeGuard update_after_paste { [&] { spreadsheet_widget.current_worksheet().update(); } };
|
||||
ScopeGuard update_after_paste { [&] { spreadsheet_widget.update(); } };
|
||||
|
||||
auto& cells = spreadsheet_widget.current_worksheet().selected_cells();
|
||||
ASSERT(!cells.is_empty());
|
||||
|
|
Loading…
Add table
Reference in a new issue