Commit 9d36dbb4 authored by Matthias Clasen's avatar Matthias Clasen

Revert "Fix gtkprintbackendcups crash"

This reverts commit 54ffc982.

I've undone the GList behaviour change instead.
parent 50065b7b
......@@ -2067,15 +2067,11 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
}
/* remove name from checklist if it was found */
if (removed_printer_checklist != NULL)
{
if (node = g_list_find_custom (removed_printer_checklist,
info->printer_name,
(GCompareFunc) find_printer))
removed_printer_checklist =
g_list_delete_link (removed_printer_checklist,
node);
}
node = g_list_find_custom (removed_printer_checklist,
info->printer_name,
(GCompareFunc) find_printer);
removed_printer_checklist = g_list_delete_link (removed_printer_checklist,
node);
printer = gtk_print_backend_find_printer (backend, info->printer_name);
if (!printer)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment