summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorwangqr <wangqr@wangqr.tk>2018-11-11 00:48:08 -0500
committerwangqr <wangqr@wangqr.tk>2019-02-12 22:15:51 -0500
commitda60309fc9ed6f75dfa84d6cbfe58c703e2944f3 (patch)
tree0331ecf173bd1078a6b63527b1f1d97d96c7ff05 /linux
parent402e46bb82964366746b86d77eb5afa69c279539 (diff)
Don't follow process when selecting non-process-specific options
Disable the follow process logic in Action_pickFromVector(), when selecting sort order or user filter, since they don't apply on specific process. Fix #856
Diffstat (limited to 'linux')
-rw-r--r--linux/Platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/Platform.c b/linux/Platform.c
index ab90ca74..13dec277 100644
--- a/linux/Platform.c
+++ b/linux/Platform.c
@@ -93,7 +93,7 @@ static Htop_Reaction Platform_actionSetIOPriority(State* st) {
if (!p) return HTOP_OK;
IOPriority ioprio = p->ioPriority;
Panel* ioprioPanel = IOPriorityPanel_new(ioprio);
- void* set = Action_pickFromVector(st, ioprioPanel, 21);
+ void* set = Action_pickFromVector(st, ioprioPanel, 21, true);
if (set) {
IOPriority ioprio = IOPriorityPanel_getIOPriority(ioprioPanel);
bool ok = MainPanel_foreachProcess((MainPanel*)panel, (MainPanel_ForeachProcessFn) LinuxProcess_setIOPriority, (Arg){ .i = ioprio }, NULL);

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