summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet/SpreadsheetView.cpp
diff options
context:
space:
mode:
authorBrandon Hamilton <brandon.hamilton@gmail.com>2021-05-31 11:01:23 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-05-31 16:57:18 +0430
commit6219c3ec3cc292df1d790c5175456e81ce7b1242 (patch)
tree5094169d7beabca508c1e0f32a8809255c50ed26 /Userland/Applications/Spreadsheet/SpreadsheetView.cpp
parent73b9cfac1b4fddd5e8105427ffd8e22d5c2eee51 (diff)
downloadserenity-6219c3ec3cc292df1d790c5175456e81ce7b1242.zip
Spreadsheet: Keep value when clicking out of a cell
Diffstat (limited to 'Userland/Applications/Spreadsheet/SpreadsheetView.cpp')
-rw-r--r--Userland/Applications/Spreadsheet/SpreadsheetView.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Applications/Spreadsheet/SpreadsheetView.cpp b/Userland/Applications/Spreadsheet/SpreadsheetView.cpp
index 42b57cbf3a..345be3846d 100644
--- a/Userland/Applications/Spreadsheet/SpreadsheetView.cpp
+++ b/Userland/Applications/Spreadsheet/SpreadsheetView.cpp
@@ -186,6 +186,9 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
m_table_view->stop_editing();
m_table_view->dispatch_event(event);
};
+ delegate->on_cell_focusout = [this](auto& index, auto& value) {
+ m_table_view->model()->set_data(index, value);
+ };
return delegate;
};