diff --git a/source/ubl-settings-kernel.c b/source/ubl-settings-kernel.c index 67db608..9cdf948 100644 --- a/source/ubl-settings-kernel.c +++ b/source/ubl-settings-kernel.c @@ -909,6 +909,9 @@ void on_module_remove_clicked(GtkWidget *self,dictionary *dict){ kernels_tab *tab = yon_dictionary_get_data(dict->first->next,kernels_tab*); int size; config_str cnf = yon_config_load(SAVE_MODE_GET_COMMAND,&size); + if (!cnf){ + cnf = yon_char_parsed_new(&size,"changes",NULL); + } yon_char_remove_last_symbol(cnf[0],'\n'); SAVE_MODE_TYPE type = yon_ubl_save_mode_get_type(cnf[0]); int installed_kernels=0;