aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 3d63bfa83b..2a346cdbf9 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -3621,8 +3621,12 @@ static void
free_view_popup (GtkWidget *widget, gpointer data)
{
EDayView *day_view = E_DAY_VIEW (data);
+
+ if (day_view->view_menu == NULL)
+ return;
gnome_calendar_discard_view_popup (day_view->calendar, day_view->view_menu);
+ day_view->view_menu = NULL;
}
static void