aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view-main-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-week-view-main-item.c')
-rw-r--r--calendar/gui/e-week-view-main-item.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view-main-item.c b/calendar/gui/e-week-view-main-item.c
index 06ebf68dbe..edf21ccaf6 100644
--- a/calendar/gui/e-week-view-main-item.c
+++ b/calendar/gui/e-week-view-main-item.c
@@ -477,6 +477,9 @@ e_week_view_main_item_set_week_view (EWeekViewMainItem *main_item,
g_return_if_fail (E_IS_WEEK_VIEW_MAIN_ITEM (main_item));
g_return_if_fail (E_IS_WEEK_VIEW (week_view));
+ if (main_item->priv->week_view == week_view)
+ return;
+
if (main_item->priv->week_view != NULL)
g_object_unref (main_item->priv->week_view);