summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2020-07-10 09:47:58 -0400
committerAndreas Kling <kling@serenityos.org>2020-07-10 19:44:18 +0200
commite6ddc7e0226b7432c3360f1e11dd605fecdb4bab (patch)
treed9a21da9dbb300756de62cad97c8ec7c6534e086 /Libraries/LibGUI
parentbd0a4cbbf99a0d4e18b274e19f6bc22bc9c52481 (diff)
downloadserenity-e6ddc7e0226b7432c3360f1e11dd605fecdb4bab.zip
LibGUI: Add missing on_toggle hook to TreeView
Alt+arrow toggles are now captured.
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r--Libraries/LibGUI/TreeView.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/TreeView.cpp b/Libraries/LibGUI/TreeView.cpp
index 583080c7cc..c3bbda16f9 100644
--- a/Libraries/LibGUI/TreeView.cpp
+++ b/Libraries/LibGUI/TreeView.cpp
@@ -115,6 +115,8 @@ void TreeView::set_open_state_of_all_in_subtree(const ModelIndex& root, bool ope
int row_count = model()->row_count(root);
int column = model()->tree_column();
for (int row = 0; row < row_count; ++row) {
+ if (on_toggle)
+ on_toggle(root, open);
auto index = model()->index(row, column, root);
set_open_state_of_all_in_subtree(index, open);
}