|
|
@ -1475,7 +1475,6 @@ void on_logrotate_remove(GtkWidget *self, logrotate_window *window){
|
|
|
|
char *paths;
|
|
|
|
char *paths;
|
|
|
|
gtk_tree_model_get(model,&iter,0,&paths,-1);
|
|
|
|
gtk_tree_model_get(model,&iter,0,&paths,-1);
|
|
|
|
gtk_list_store_remove(main_config.logrotate_list,&iter);
|
|
|
|
gtk_list_store_remove(main_config.logrotate_list,&iter);
|
|
|
|
yon_char_replace(paths,"\n",",");
|
|
|
|
|
|
|
|
yon_config_remove_by_key(LOGROTATE(paths));
|
|
|
|
yon_config_remove_by_key(LOGROTATE(paths));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2226,6 +2225,7 @@ void on_log_remove(GtkWidget *self, main_window *widgets){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
paths = yon_char_divide(paths,strlen(paths)-strlen(stay));
|
|
|
|
paths = yon_char_divide(paths,strlen(paths)-strlen(stay));
|
|
|
|
gtk_list_store_set(widgets->list,&iter,1,paths,3,1,-1);
|
|
|
|
gtk_list_store_set(widgets->list,&iter,1,paths,3,1,-1);
|
|
|
|
|
|
|
|
gtk_tree_selection_unselect_all(gtk_tree_view_get_selection(GTK_TREE_VIEW(widgets->list)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
yon_logs_custom_save(widgets);
|
|
|
|
yon_logs_custom_save(widgets);
|
|
|
|