Skip to content

Commit

Permalink
fix defaults for preference combos
Browse files Browse the repository at this point in the history
depending on memory region, last item was always made default. If afterwards removed due to missing capability, this would cause invalid data after reset to default. fixes darktable-org#17065
  • Loading branch information
dterrahe committed Jun 28, 2024
1 parent f29cadc commit 972164b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bauhaus/bauhaus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ void dt_bauhaus_combobox_add_full(GtkWidget *widget,
g_ptr_array_add(d->entries, entry);
if(d->active < 0)
d->active = 0;
if(d->defpos < 0 && sensitive)
if(d->defpos == -1 && sensitive)

This comment has been minimized.

Copy link
@dterrahe

dterrahe Jun 30, 2024

Author Owner
d->defpos = GPOINTER_TO_INT(data);
}

Expand Down

0 comments on commit 972164b

Please sign in to comment.