summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2022-03-15 12:06:51 +0100
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-03-28 22:28:40 +0430
commitd665492e356ab20ed5b6072a90dbea4e3138c125 (patch)
treec7ccf92b804eb34f92b5d07ea71d4faa58e29c84
parent07b369b7d9fe26b697e45435c2d0f07bb0eb6b14 (diff)
downloadserenity-d665492e356ab20ed5b6072a90dbea4e3138c125.zip
Spreadsheet: Don't remove on_change tab function after loading a file
Forgot to remove that in c0c9825f67e649daf277e75829c8f4bce1428115, as this function was no longer declared and used... Until the previous commit. This meant that pressing the F2 key after opening a file no longer matched the current tab.
-rw-r--r--Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp b/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp
index 1f9f010202..6b0af1f5a7 100644
--- a/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp
+++ b/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp
@@ -425,7 +425,6 @@ void SpreadsheetWidget::load_file(Core::File& file)
return;
}
- m_tab_widget->on_change = nullptr;
m_cell_value_editor->on_change = nullptr;
m_current_cell_label->set_text("");
m_should_change_selected_cells = false;