diff --git a/source/ubl-settings-bootloader-user.c b/source/ubl-settings-bootloader-user.c index 00d9387..554ac40 100644 --- a/source/ubl-settings-bootloader-user.c +++ b/source/ubl-settings-bootloader-user.c @@ -93,9 +93,7 @@ void on_user_remove_clicked(GtkWidget *,main_window *widgets){ if (gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(widgets->BootUsersTree)),&model,&iter)){ char *name; gtk_tree_model_get(model,&iter,1,&name,-1); - dialog_confirmation_data *data = new(dialog_confirmation_data); - data->data=NULL; - data->function=NULL; + dialog_confirmation_data *data = yon_confirmation_dialog_data_new(); data->action_text = USER_REMOVE_CONFIRM_LABEL(name); if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){ yon_config_remove_by_key(GRUB_PASSWORD(name));