diff options
Diffstat (limited to 'apps/gui/option_select.c')
-rw-r--r-- | apps/gui/option_select.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index d482bd24ae..045f5570c4 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c | |||
@@ -78,13 +78,15 @@ void option_select_prev(struct option_select * opt) | |||
78 | { | 78 | { |
79 | if(opt->option - opt->step < opt->min_value) | 79 | if(opt->option - opt->step < opt->min_value) |
80 | { | 80 | { |
81 | if(!opt->limit_loop) | 81 | /* the dissimilarity to option_select_next() arises from the |
82 | { | 82 | * sleep timer problem (bug #5000 and #5001): |
83 | if(opt->option==opt->min_value) | 83 | * there we have min=0, step = 5 but the value itself might |
84 | opt->option=opt->max_value-1; | 84 | * not be a multiple of 5 -- as time elapsed; |
85 | else | 85 | * We need to be able to set timer to 0 (= Off) nevertheless. */ |
86 | opt->option=opt->min_value; | 86 | if(opt->option!=opt->min_value) |
87 | } | 87 | opt->option=opt->min_value; |
88 | else if(!opt->limit_loop) | ||
89 | opt->option=opt->max_value-1; | ||
88 | } | 90 | } |
89 | else | 91 | else |
90 | opt->option-=opt->step; | 92 | opt->option-=opt->step; |