summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-12-02 18:52:09 +0100
committerBenBE <BenBE@geshi.org>2020-12-02 23:50:05 +0100
commitc6b66a75ea140f5b3ed50b273be4c9b3c60ebfad (patch)
treefe63ae719c7a5c2711b0df44825fdd10360f8655 /ProcessList.c
parent709821ff55b2f6fc8e7b4271d091fd8457083865 (diff)
Minor code streamlining
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 250e85ec..59a7c387 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -431,11 +431,11 @@ static void ProcessList_buildTree(ProcessList* this) {
}
void ProcessList_sort(ProcessList* this) {
- if (!this->settings->treeView) {
- Vector_insertionSort(this->processes);
- } else {
+ if (this->settings->treeView) {
ProcessList_updateTreeSet(this);
Vector_quickSortCustomCompare(this->processes, ProcessList_treeProcessCompare);
+ } else {
+ Vector_insertionSort(this->processes);
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy