aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-03-26 12:45:41 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-03-26 12:45:41 +0800
commitaebeb2ef7010d8f72508a6a6f4541f05a942853a (patch)
treeeb93afd062df32c67c7f66de57c1b4b4742be6d3 /calendar
parent66704f04187928dcab171b6ac3250e9df641f97d (diff)
downloadgsoc2013-evolution-aebeb2ef7010d8f72508a6a6f4541f05a942853a.tar
gsoc2013-evolution-aebeb2ef7010d8f72508a6a6f4541f05a942853a.tar.gz
gsoc2013-evolution-aebeb2ef7010d8f72508a6a6f4541f05a942853a.tar.bz2
gsoc2013-evolution-aebeb2ef7010d8f72508a6a6f4541f05a942853a.tar.lz
gsoc2013-evolution-aebeb2ef7010d8f72508a6a6f4541f05a942853a.tar.xz
gsoc2013-evolution-aebeb2ef7010d8f72508a6a6f4541f05a942853a.tar.zst
gsoc2013-evolution-aebeb2ef7010d8f72508a6a6f4541f05a942853a.zip
fix off by one error when emitting deleted signal
2004-03-25 JP Rosevear <jpr@ximian.com> * gui/e-cal-model.c (remove_client): fix off by one error when emitting deleted signal svn path=/trunk/; revision=25193
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/e-cal-model.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 7a2c720e26..2a23dbaabc 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,10 @@
2004-03-25 JP Rosevear <jpr@ximian.com>
+ * gui/e-cal-model.c (remove_client): fix off by one error when
+ emitting deleted signal
+
+2004-03-25 JP Rosevear <jpr@ximian.com>
+
Fixes #53499
* gui/gnome-cal.c (setup_widgets): don't give the state file to
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index 95255c023f..4cc9038807 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -1397,7 +1397,7 @@ remove_client (ECalModel *model, ECalModelClient *client_data)
g_ptr_array_remove (model->priv->objects, comp_data);
free_comp_data (comp_data);
- e_table_model_row_deleted (E_TABLE_MODEL (model), i);
+ e_table_model_row_deleted (E_TABLE_MODEL (model), i - 1);
}
}