summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Borges <felipeborges@gnome.org>2016-12-11 13:41:17 +0100
committerFelipe Borges <felipeborges@gnome.org>2016-12-11 15:53:49 +0100
commitb5a481cd28b6fdb1394e9a698eb79be3a4d80be6 (patch)
tree8a7aac304e8e05c2daabeae685dd3171afabfdcd
parentd60644750a629cd1adbfd5eefbaef78de1b85cc0 (diff)
downloadgnome-control-center-b5a481cd28b6fdb1394e9a698eb79be3a4d80be6.tar.gz
printers: Prevent PpSamba from emiting "authentication-required" twice
https://bugzilla.gnome.org/show_bug.cgi?id=760783
-rw-r--r--panels/printers/pp-samba.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/panels/printers/pp-samba.c b/panels/printers/pp-samba.c
index 4667911f8..6c1bbd8cf 100644
--- a/panels/printers/pp-samba.c
+++ b/panels/printers/pp-samba.c
@@ -112,6 +112,9 @@ get_auth_info (gpointer user_data)
SMBData *data = (SMBData *) user_data;
PpSamba *samba = PP_SAMBA (data->samba);
+ if (samba->priv->waiting == TRUE)
+ return FALSE;
+
samba->priv->waiting = TRUE;
g_signal_emit_by_name (samba, "authentication-required");