printers: Use dialog cancellable in async call

Otherwise this could crash if the dialog is destroyed before the PPD is set.
This commit is contained in:
Robert Ancell 2018-11-23 14:12:35 +13:00
parent 3dda349aa3
commit e20fd185c8

View file

@ -346,7 +346,7 @@ select_ppd_manually (GtkButton *button,
{ {
printer_set_ppd_file_async (self->printer_name, printer_set_ppd_file_async (self->printer_name,
ppd_filename, ppd_filename,
NULL, self->cancellable,
set_ppd_cb, set_ppd_cb,
self); self);
} }