aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-tasks.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r--calendar/gui/e-tasks.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index a1f8cecd99..235f8cb9d9 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -1346,8 +1346,8 @@ e_tasks_setup_view_menus (ETasks *tasks, BonoboUIComponent *uic)
g_return_if_fail (priv->view_instance == NULL);
- g_assert (priv->view_instance == NULL);
- g_assert (priv->view_menus == NULL);
+ g_return_if_fail (priv->view_instance == NULL);
+ g_return_if_fail (priv->view_menus == NULL);
/* Create the view instance */
@@ -1415,9 +1415,7 @@ e_tasks_discard_view_menus (ETasks *tasks)
priv = tasks->priv;
g_return_if_fail (priv->view_instance != NULL);
-
- g_assert (priv->view_instance != NULL);
- g_assert (priv->view_menus != NULL);
+ g_return_if_fail (priv->view_menus != NULL);
g_object_unref (priv->view_instance);
priv->view_instance = NULL;