summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Action.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Action.c b/Action.c
index 18c990e0..c5b16360 100644
--- a/Action.c
+++ b/Action.c
@@ -253,6 +253,9 @@ static Htop_Reaction actionToggleTreeView(State* st) {
if (!ss->allBranchesCollapsed)
ProcessList_expandTree(st->pl);
+
+ st->pl->needsSort = true;
+
return HTOP_REFRESH | HTOP_SAVE_SETTINGS | HTOP_KEEP_FOLLOWING | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR;
}