aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/publish-calendar/publish-calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/publish-calendar/publish-calendar.c')
-rw-r--r--plugins/publish-calendar/publish-calendar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/publish-calendar/publish-calendar.c b/plugins/publish-calendar/publish-calendar.c
index da9306331d..3ea3747108 100644
--- a/plugins/publish-calendar/publish-calendar.c
+++ b/plugins/publish-calendar/publish-calendar.c
@@ -934,8 +934,10 @@ e_plugin_lib_enable (EPlugin *ep, gint enable)
if (shell) {
g_signal_handlers_disconnect_by_func (shell, G_CALLBACK (online_state_changed), NULL);
- if (enable)
+ if (enable) {
+ online = e_shell_get_online (shell);
g_signal_connect (shell, "notify::online", G_CALLBACK (online_state_changed), NULL);
+ }
}
if (enable) {