From 868c315e51b8322deb9cbe03cb16af22adb25651 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Thu, 26 Nov 2020 08:16:49 +0330 Subject: [PATCH] Spreadsheet: Force-update the spreadsheet widget after pasting Just updating the sheet will not cause a widget update. --- Applications/Spreadsheet/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Spreadsheet/main.cpp b/Applications/Spreadsheet/main.cpp index 8233f356aa..a9adb3676f 100644 --- a/Applications/Spreadsheet/main.cpp +++ b/Applications/Spreadsheet/main.cpp @@ -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());