aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-01-14 23:24:08 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-01-14 23:24:08 +0800
commit5dffd5377bdb30c20f22553dd1482186ff322b6a (patch)
tree20ed39c4327a611a172cdafcd804067958ea7dfa
parentefeb03d98913e32ad6d4ceaccd71d83b88edbfd6 (diff)
downloadgsoc2013-evolution-5dffd5377bdb30c20f22553dd1482186ff322b6a.tar
gsoc2013-evolution-5dffd5377bdb30c20f22553dd1482186ff322b6a.tar.gz
gsoc2013-evolution-5dffd5377bdb30c20f22553dd1482186ff322b6a.tar.bz2
gsoc2013-evolution-5dffd5377bdb30c20f22553dd1482186ff322b6a.tar.lz
gsoc2013-evolution-5dffd5377bdb30c20f22553dd1482186ff322b6a.tar.xz
gsoc2013-evolution-5dffd5377bdb30c20f22553dd1482186ff322b6a.tar.zst
gsoc2013-evolution-5dffd5377bdb30c20f22553dd1482186ff322b6a.zip
don't try to set up the creation ecal unless we are actually creating a
2004-01-14 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (impl_requestCreateItem): don't try to set up the creation ecal unless we are actually creating a new item svn path=/trunk/; revision=24218
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/tasks-component.c17
2 files changed, 14 insertions, 8 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 4b53d5aefd..548852368b 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-14 JP Rosevear <jpr@ximian.com>
+
+ * gui/tasks-component.c (impl_requestCreateItem): don't try to set
+ up the creation ecal unless we are actually creating a new item
+
2004-01-13 Rodney Dawes <dobey@ximian.com>
* gui/Makefile.am: Only link in libsoup where we need it
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c
index 09dd79b8d0..ce9f77157f 100644
--- a/calendar/gui/tasks-component.c
+++ b/calendar/gui/tasks-component.c
@@ -732,17 +732,18 @@ impl_requestCreateItem (PortableServer_Servant servant,
{
TasksComponent *tasks_component = TASKS_COMPONENT (bonobo_object_from_servant (servant));
TasksComponentPrivate *priv;
- ECalComponent *comp;
- TaskEditor *editor;
- priv = tasks_component->priv;
-
- if (!setup_create_ecal (tasks_component))
- return;
-
- editor = task_editor_new (priv->create_ecal);
+ priv = tasks_component->priv;
if (strcmp (item_type_name, CREATE_TASK_ID) == 0) {
+ ECalComponent *comp;
+ TaskEditor *editor;
+
+ if (!setup_create_ecal (tasks_component))
+ return;
+
+ editor = task_editor_new (priv->create_ecal);
+
comp = get_default_task (priv->create_ecal);
comp_editor_edit_comp (COMP_EDITOR (editor), comp);