Fixed crash

pull/58/head
Ivan Dmitrievich Yartsev 10 months ago
parent 887599a65b
commit f5fb8bb3ce

@ -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;

Loading…
Cancel
Save