aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-tasks.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-11-23 17:56:15 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-11-23 17:56:15 +0800
commitced5862cb604ccaad1ff82090b972b875e36724b (patch)
treee427a067eb54fa3319918051c2236a29403ced44 /calendar/gui/e-tasks.c
parent36917891fe11507d70971a54f0378cf84b8c2a59 (diff)
downloadgsoc2013-evolution-ced5862cb604ccaad1ff82090b972b875e36724b.tar.gz
gsoc2013-evolution-ced5862cb604ccaad1ff82090b972b875e36724b.tar.zst
gsoc2013-evolution-ced5862cb604ccaad1ff82090b972b875e36724b.zip
** Fix for bug #325730
2007-11-23 Milan Crha <mcrha@redhat.com> ** Fix for bug #325730 * gui/e-memos.c: (table_selection_change_cb): * gui/e-tasks.c: (table_selection_change_cb): Clear task/memo preview when have more or less than one row selected. * gui/e-cal-model.c: (e_cal_view_objects_added_cb), (e_cal_view_objects_removed_cb), (remove_client_objects): First delete, then notify, so we read from updated store. svn path=/trunk/; revision=34577
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r--calendar/gui/e-tasks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index b127fdab30..acd176a7c2 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -190,6 +190,9 @@ table_selection_change_cb (ETable *etable, gpointer data)
n_selected = e_table_selected_count (etable);
gtk_signal_emit (GTK_OBJECT (tasks), e_tasks_signals[SELECTION_CHANGED],
n_selected);
+
+ if (n_selected != 1)
+ e_cal_component_preview_clear (E_CAL_COMPONENT_PREVIEW (tasks->priv->preview));
}
static void