aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-05-02 22:49:43 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-05-02 22:49:43 +0800
commitbafc4fa954b1578ab46043ea9e57da192c30aaae (patch)
tree0f4b39dae031467979b18ec03883b39c02c60276 /calendar/gui/e-week-view.c
parentf570ce28bf08593baca5012bf74d2227992aa5fb (diff)
downloadgsoc2013-evolution-bafc4fa954b1578ab46043ea9e57da192c30aaae.tar.gz
gsoc2013-evolution-bafc4fa954b1578ab46043ea9e57da192c30aaae.tar.zst
gsoc2013-evolution-bafc4fa954b1578ab46043ea9e57da192c30aaae.zip
only discard the popup if we created one
2002-05-02 JP Rosevear <jpr@ximian.com> * gui/e-week-view.c (free_view_popup): only discard the popup if we created one svn path=/trunk/; revision=16663
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index c01230cbf2..f0913e3e28 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -3498,8 +3498,12 @@ static void
free_view_popup (GtkWidget *widget, gpointer data)
{
EWeekView *week_view = E_WEEK_VIEW (data);
+
+ if (week_view->view_menu == NULL)
+ return;
gnome_calendar_discard_view_popup (week_view->calendar, week_view->view_menu);
+ week_view->view_menu = NULL;
}
void