printing: Fail nicely when /tmp is not writable
Don't crash when /tmp is not writable when printing to file. Show that getting of printer details failed for CUPS printers. https://bugzilla.gnome.org/show_bug.cgi?id=693200
This commit is contained in:

committed by
Matthias Clasen

parent
3693045566
commit
b95ce71b89
@ -135,8 +135,9 @@ op_unix_free (GtkPrintOperationUnix *op_unix)
|
||||
{
|
||||
if (op_unix->job)
|
||||
{
|
||||
g_signal_handler_disconnect (op_unix->job,
|
||||
op_unix->job_status_changed_tag);
|
||||
if (op_unix->job_status_changed_tag > 0)
|
||||
g_signal_handler_disconnect (op_unix->job,
|
||||
op_unix->job_status_changed_tag);
|
||||
g_object_unref (op_unix->job);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user