diff options
author | Vincent Untz <vuntz@novell.com> | 2008-10-27 14:44:03 +0100 |
---|---|---|
committer | Vincent Untz <vuntz@novell.com> | 2008-10-27 14:44:03 +0100 |
commit | c676daec868f1729afd492f958e39c8355c743cf (patch) | |
tree | 2b26f88cf159118fef53b5ae5cc5fb8ad4f29fb8 | |
parent | 021f3cc3b8c0e326d012e4cf27be2b9d42f7a0cf (diff) |
Make AcceptJobs actually work.
reason has to be NULL when calling cph_cups_printer_set_accept_jobs().
-rw-r--r-- | src/cups-pk-helper-mechanism.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cups-pk-helper-mechanism.c b/src/cups-pk-helper-mechanism.c index 45c5fd9..c31e567 100644 --- a/src/cups-pk-helper-mechanism.c +++ b/src/cups-pk-helper-mechanism.c @@ -678,6 +678,9 @@ cph_mechanism_printer_set_accept_jobs (CphMechanism *mechanism, if (!_check_polkit_for_action (mechanism, context, "printeraddremove")) return FALSE; + if (reason && reason[0] == '\0') + reason = NULL; + ret = cph_cups_printer_set_accept_jobs (mechanism->priv->cups, name, enabled, reason); _cph_mechanism_return_error (mechanism, context, !ret); |