diff options
Diffstat (limited to 'ui/gtk/extcap_gtk.c')
-rw-r--r-- | ui/gtk/extcap_gtk.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ui/gtk/extcap_gtk.c b/ui/gtk/extcap_gtk.c index cc7bc883a0..0f8596b2f7 100644 --- a/ui/gtk/extcap_gtk.c +++ b/ui/gtk/extcap_gtk.c @@ -289,9 +289,6 @@ GHashTable *extcap_gtk_get_state(GtkWidget *widget) { if (parsed_complex == NULL && call_string == NULL) continue; - /* Comparing if the user has changed the value at all, and ignoring it if so */ - if (extcap_compare_is_default(arg, parsed_complex)) - continue; /* Flags are set as is, and have not true/false switch */ if (arg->arg_type == EXTCAP_ARG_BOOLFLAG) @@ -312,6 +309,14 @@ GHashTable *extcap_gtk_get_state(GtkWidget *widget) { continue; } } + else + { + /* Comparing if the user has changed the value at all, and ignoring it if so. + * This does not apply to EXTCAP_ARG_BOOLFLAG. + */ + if (extcap_compare_is_default(arg, parsed_complex)) + continue; + } if (parsed_complex != NULL && call_string == NULL) call_string = extcap_get_complex_as_string(parsed_complex); |