Printers: Match lower-case properly
The lower-cased string needs to be checked against a lower-case string, or it's never going to match (found by Bastien Nocera in gnome-settings-daemon).
This commit is contained in:
parent
064f4c2049
commit
ffff7a7deb
1 changed files with 1 additions and 1 deletions
|
@ -1646,7 +1646,7 @@ new_printer_add_button_cb (GtkButton *button,
|
|||
gchar *commands_lowercase = g_ascii_strdown (commands, -1);
|
||||
ipp_t *response = NULL;
|
||||
|
||||
if (g_strrstr (commands_lowercase, "AutoConfigure"))
|
||||
if (g_strrstr (commands_lowercase, "autoconfigure"))
|
||||
{
|
||||
response = execute_maintenance_command (pp->devices[device_id].display_name,
|
||||
"AutoConfigure",
|
||||
|
|
Loading…
Add table
Reference in a new issue