goptions: remember to mark option index for FIO_OPT_STR_VAL
authorJens Axboe <axboe@kernel.dk>
Tue, 20 Mar 2012 11:09:13 +0000 (12:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Mar 2012 11:09:13 +0000 (12:09 +0100)
Fixes hiding of these options.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
goptions.c

index 52a58be..49da001 100644 (file)
@@ -640,6 +640,7 @@ static struct gopt *gopt_new_str_val(struct fio_option *o,
                label = gtk_label_new(o->name);
        else
                label = gtk_label_new(o->lname);
+       gopt_mark_index(&g->gopt, idx);
 
        g->spin = gtk_spin_button_new_with_range(0.0, 1023.0, 1.0);
        gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON(g->spin), GTK_UPDATE_IF_VALID);