aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
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
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')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/e-week-view.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index cd619ce7e8..a98321eab7 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-02 JP Rosevear <jpr@ximian.com>
+
+ * gui/e-week-view.c (free_view_popup): only discard the popup if
+ we created one
+
2002-05-02 Rodrigo Moya <rodrigo@ximian.com>
* pcs/query.c: refactored a bit, to not do things in idle loops.
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