From 7878596532f32b65be06dd032035b5ecbf35c896 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sat, 7 Nov 2020 23:18:11 +0330 Subject: [PATCH] Spreadsheet: Update the view when using the cell editor --- Applications/Spreadsheet/SpreadsheetWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/Spreadsheet/SpreadsheetWidget.cpp b/Applications/Spreadsheet/SpreadsheetWidget.cpp index 02202192d9b..36110fbe843 100644 --- a/Applications/Spreadsheet/SpreadsheetWidget.cpp +++ b/Applications/Spreadsheet/SpreadsheetWidget.cpp @@ -114,6 +114,7 @@ void SpreadsheetWidget::setup_tabs(NonnullRefPtrVector new_sheets) m_cell_value_editor->on_change = [&] { cell.set_data(m_cell_value_editor->text()); m_selected_view->sheet().update(); + update(); }; m_cell_value_editor->set_enabled(true); return; @@ -139,6 +140,7 @@ void SpreadsheetWidget::setup_tabs(NonnullRefPtrVector new_sheets) for (auto* cell : cells) cell->set_data(m_cell_value_editor->text()); m_selected_view->sheet().update(); + update(); } }; m_cell_value_editor->set_enabled(true);