diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-11-25 20:05:04 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-11-25 20:05:04 +0000 |
commit | e54244480dd003a8fd0cc315089ff69da62ed230 (patch) | |
tree | fbd26b26e5e3fdc6dbb3bdbdcad70d32b5002411 /apps/gui/option_select.c | |
parent | d63f2375a20e37c12a93737b34d723fb8cac3c26 (diff) |
Convert 2 more settings to table settings. * Fix duplicate value display if the first value is selected in a table setting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15805 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/option_select.c')
-rw-r--r-- | apps/gui/option_select.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index a72cdb5a60..2feece3b94 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c @@ -398,9 +398,9 @@ bool option_screen(struct settings_list *setting, const struct table_setting *info = setting->table_setting; int i; nb_items = info->count; - selected = 0; + selected = -1; table_setting_array_position = -1; - for (i=0;selected==0 && i<nb_items;i++) + for (i=0;selected==-1 && i<nb_items;i++) { if (setting->flags&F_ALLOW_ARBITRARY_VALS && (oldvalue < info->values[i])) |