summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-11-26 08:16:49 +0330
committerAndreas Kling <kling@serenityos.org>2020-11-30 12:07:45 +0100
commit868c315e51b8322deb9cbe03cb16af22adb25651 (patch)
tree519cf25d85b37907e9df37f2a77c0fddcb92efe7
parent113da74683d352a412834603215f6efe70310f4c (diff)
downloadserenity-868c315e51b8322deb9cbe03cb16af22adb25651.zip
Spreadsheet: Force-update the spreadsheet widget after pasting
Just updating the sheet will not cause a widget update.
-rw-r--r--Applications/Spreadsheet/main.cpp2
1 files changed, 1 insertions, 1 deletions
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());