printers: Do not authenticate SMB servers when search field is edited

When the search field in the "Add Printer" dialog is edited, no
authentication with a remote SMB server should be attempted. The server
should just be added to the list and marked with "Server requires
authentication". The user can then authenticate the server by clicking
on it.

The behavior described above is probably the intended one when the code
was written, since there is no closure registered for the
"authentication-required" signal in the function this commit modifies.
This commit should simply restore the intended behavior.

Resolves: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/755
This commit is contained in:
Elia Geretto 2020-03-06 16:12:08 +01:00 committed by Robert Ancell
parent 57685f0343
commit 1bf5d4f55f

View file

@ -1454,7 +1454,7 @@ search_for_remote_printers (THostSearchData *data)
data->dialog);
pp_samba_get_devices_async (self->samba_host,
TRUE,
FALSE,
self->remote_host_cancellable,
get_samba_host_devices_cb,
data->dialog);