aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-01-15 23:09:29 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-01-15 23:09:29 +0800
commitfbd28cca81f1f67342d94d956003ac09aa7f5b25 (patch)
tree1d13ec1c2001e0063752781cd220f069f67c2670 /calendar/gui
parent77aa60234cf346c44cde4a5aa36f1c972c1a23e8 (diff)
downloadgsoc2013-evolution-fbd28cca81f1f67342d94d956003ac09aa7f5b25.tar
gsoc2013-evolution-fbd28cca81f1f67342d94d956003ac09aa7f5b25.tar.gz
gsoc2013-evolution-fbd28cca81f1f67342d94d956003ac09aa7f5b25.tar.bz2
gsoc2013-evolution-fbd28cca81f1f67342d94d956003ac09aa7f5b25.tar.lz
gsoc2013-evolution-fbd28cca81f1f67342d94d956003ac09aa7f5b25.tar.xz
gsoc2013-evolution-fbd28cca81f1f67342d94d956003ac09aa7f5b25.tar.zst
gsoc2013-evolution-fbd28cca81f1f67342d94d956003ac09aa7f5b25.zip
test priv->calendar is not NULL before getting current view
2004-01-15 Radek Doulik <rodo@ximian.com> * gui/calendar-component.c (create_new_event): test priv->calendar is not NULL before getting current view svn path=/trunk/; revision=24241
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-component.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index e0452088a6..19fe36ff17 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -785,8 +785,7 @@ create_new_event (CalendarComponent *calendar_component, gboolean is_allday, gbo
if (!e_cal_is_read_only (priv->create_ecal, &read_only, NULL) || read_only)
return;
- view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (priv->calendar));
- if (view)
+ if (priv->calendar && (view = E_CALENDAR_VIEW (gnome_calendar_get_current_view_widget (priv->calendar))))
e_calendar_view_new_appointment_full (view, is_allday, is_meeting);
else {
ECalComponent *comp;