source-dialog: insensitivize the add button at errors
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
0cc4d90e02
commit
e7bcae666c
@@ -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,
|
if (!e_webdav_discover_sources_finish (E_SOURCE (source), result, NULL, NULL, &discovered_sources, &user_adresses,
|
||||||
&error))
|
&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,
|
* If it's the first try and things went wrong,
|
||||||
* retry with the user credentials.
|
* retry with the user credentials.
|
||||||
|
|||||||
Reference in New Issue
Block a user