}
/* Save the ids */
- modest_account_mgr_set_list (modest_runtime_get_account_mgr (), acc_name,
- MODEST_ACCOUNT_NOTIFICATION_IDS,
- notif_list, MODEST_CONF_VALUE_INT, FALSE);
+ if (notif_list) {
+ modest_account_mgr_set_list (modest_runtime_get_account_mgr (), acc_name,
+ MODEST_ACCOUNT_NOTIFICATION_IDS,
+ notif_list, MODEST_CONF_VALUE_INT, FALSE);
- g_slist_free (notif_list);
+ g_slist_free (notif_list);
+ }
#endif /* MODEST_HAVE_HILDON_NOTIFY */
}
gtk_widget_hide_all (priv->calendar_box);
gtk_widget_hide (priv->calendar_actions_container);
gtk_widget_hide_all (priv->calendar_actions_container);
- gtk_widget_hide (priv->calendar_actions_box);
+ if (priv->calendar_actions_box)
+ gtk_widget_hide (priv->calendar_actions_box);
}
-
-
}