diff options
author | Daniel Lange <DLange@git.local> | 2022-05-30 10:37:19 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2022-05-30 10:37:19 +0200 |
commit | ce5009532392692ffe4ce6b394b63ca82ba4686b (patch) | |
tree | 0bbebdb8b552e62925fd3303be1d9444d834b72c /Action.c | |
parent | 7694dbc82175baff3b3a42898ef8c29c7299eca3 (diff) | |
parent | 17e28d5264c34075bdd4b5ebf2b7c0efb892ce2f (diff) |
Merge branch 'fix-allBranchesCollapsed' of tanriol/htop
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -242,6 +242,9 @@ static Htop_Reaction actionToggleTreeView(State* st) { static Htop_Reaction actionExpandOrCollapseAllBranches(State* st) { ScreenSettings* ss = st->settings->ss; + if (!ss->treeView) { + return HTOP_OK; + } ss->allBranchesCollapsed = !ss->allBranchesCollapsed; if (ss->allBranchesCollapsed) ProcessList_collapseAllBranches(st->pl); |