aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/groupwise-features/proxy.c')
-rw-r--r--plugins/groupwise-features/proxy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c
index 22d656b2f2..f6954aa335 100644
--- a/plugins/groupwise-features/proxy.c
+++ b/plugins/groupwise-features/proxy.c
@@ -202,6 +202,7 @@ proxy_dialog_init (GObject *object)
prd->priv = priv;
+ prd->cnc = NULL;
priv->tab_dialog = NULL;
priv->xml = NULL;
priv->xml_tab = NULL;
@@ -689,8 +690,6 @@ org_gnome_proxy (EPlugin *epl, EConfigHookItemFactoryData *data)
g_signal_connect (removeProxy, "clicked", G_CALLBACK(proxy_remove_account), account);
g_signal_connect (editProxy, "clicked", G_CALLBACK(proxy_edit_account), account);
- prd->cnc = proxy_get_cnc(account);
-
priv->proxy_list = NULL;
} else if (account->enabled){
GtkWidget *label;
@@ -737,6 +736,9 @@ proxy_page_changed_cb (GtkNotebook *notebook, GtkNotebookPage *page, int num, EA
if (!prd || !prd->priv)
return TRUE;
+
+ if (!prd->cnc)
+ prd->cnc = proxy_get_cnc(account);
priv = prd->priv;