[evolution/gnome-3-32] eds-I#112 - Credentials prompter re-asks for credentials of disabled accounts
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-32] eds-I#112 - Credentials prompter re-asks for credentials of disabled accounts
- Date: Tue, 7 May 2019 16:07:17 +0000 (UTC)
commit cb7f44321d3236fbfeecb3272f42966220ce3d3f
Author: Milan Crha <mcrha redhat com>
Date: Tue May 7 18:07:49 2019 +0200
eds-I#112 - Credentials prompter re-asks for credentials of disabled accounts
Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/112
src/shell/e-shell.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/shell/e-shell.c b/src/shell/e-shell.c
index 727b16ace8..8f7581d254 100644
--- a/src/shell/e-shell.c
+++ b/src/shell/e-shell.c
@@ -2449,10 +2449,17 @@ void
e_shell_allow_auth_prompt_for (EShell *shell,
ESource *source)
{
+ gboolean source_enabled;
+
g_return_if_fail (E_IS_SHELL (shell));
g_return_if_fail (E_IS_SOURCE (source));
- e_credentials_prompter_set_auto_prompt_disabled_for (shell->priv->credentials_prompter, source,
FALSE);
+ source_enabled = e_source_registry_check_enabled (shell->priv->registry, source);
+
+ e_credentials_prompter_set_auto_prompt_disabled_for (shell->priv->credentials_prompter, source,
!source_enabled);
+
+ if (!source_enabled)
+ return;
if (e_source_get_connection_status (source) == E_SOURCE_CONNECTION_STATUS_AWAITING_CREDENTIALS) {
e_credentials_prompter_process_source (shell->priv->credentials_prompter, source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]