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:
Marek Kasik 2011-09-19 14:00:10 +02:00
parent 064f4c2049
commit ffff7a7deb

View file

@ -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",