Spreadsheet: Force-update the spreadsheet widget after pasting

Just updating the sheet will not cause a widget update.
This commit is contained in:
AnotherTest 2020-11-26 08:16:49 +03:30 committed by Andreas Kling
parent 113da74683
commit 868c315e51

View file

@ -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());