From e7bcae666ce8bf717b6d1bd1fe51eba8ba88d6ba Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 30 Mar 2015 23:29:35 -0300 Subject: [PATCH] source-dialog: insensitivize the add button at errors --- src/gcal-source-dialog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index 573e1a94..4e2079c4 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -742,6 +742,9 @@ discover_sources_cb (GObject *source, if (!e_webdav_discover_sources_finish (E_SOURCE (source), result, NULL, NULL, &discovered_sources, &user_adresses, &error)) { + // Don't add an source with errors + gtk_widget_set_sensitive (priv->add_button, FALSE); + /* * If it's the first try and things went wrong, * retry with the user credentials.