forked from AuroraMiddleware/gtk
Remember to call print_cb even if print operation is cancelled.
Closes #2917.
This commit is contained in:
parent
8fb1e33d0f
commit
cc8bb5fc54
@ -427,7 +427,15 @@ prepare_print_response (GDBusConnection *connection,
|
||||
g_free (filename);
|
||||
}
|
||||
else
|
||||
portal->result = GTK_PRINT_OPERATION_RESULT_CANCEL;
|
||||
{
|
||||
portal->result = GTK_PRINT_OPERATION_RESULT_CANCEL;
|
||||
|
||||
if (portal->print_cb)
|
||||
portal->print_cb (portal->op, portal->parent, portal->do_print, portal->result);
|
||||
|
||||
if (portal->destroy)
|
||||
portal->destroy (portal);
|
||||
}
|
||||
|
||||
if (options)
|
||||
g_variant_unref (options);
|
||||
|
Loading…
Reference in New Issue
Block a user