diff --git a/source/libublsettingsui-gtk3-app-chooser.c b/source/libublsettingsui-gtk3-app-chooser.c index 389acc1..62d89bd 100644 --- a/source/libublsettingsui-gtk3-app-chooser.c +++ b/source/libublsettingsui-gtk3-app-chooser.c @@ -32,7 +32,7 @@ config_str yon_apps_get_from_file(char *file,int *final_size){ return final; } -int yon_apps_get(yon_app_chooser_window *window){ +int yon_app_chooser_apps_get(yon_app_chooser_window *window){ window->apps = NULL; window->apps_size=0; int merged_size; @@ -204,7 +204,7 @@ yon_app_chooser_window *yon_app_chooser_window_new(int multiple_choise){ } - if (!yon_apps_get(window)) return NULL; + if (!yon_app_chooser_apps_get(window)) return NULL; if (!yon_app_chooser_convert_apps(window)) return NULL; yon_tree_store_setup_apps(window); diff --git a/source/libublsettingsui-gtk3.c b/source/libublsettingsui-gtk3.c index 47bd817..dc2615e 100644 --- a/source/libublsettingsui-gtk3.c +++ b/source/libublsettingsui-gtk3.c @@ -477,6 +477,7 @@ int yon_ubl_setup_arguments(int argc, char *argv[],config_str *unfound_arguments yon_char_parsed_add_or_create_if_exists(unregistered_arguments,arguments_size,yon_char_unite(argv[i],!yon_char_is_empty(unfound)?"=":"",!yon_char_is_empty(unfound)?unfound:"",NULL)); } } + if (arguments_size)yon_char_parsed_add_or_create_if_exists(unregistered_arguments,arguments_size,NULL); (*unfound_arguments)=unregistered_arguments; if (show_help&&!template_config->lock_help){ printf("%s\n",HELP_LABEL(additional_options_output));