aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-memos.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-memos.c')
-rw-r--r--calendar/gui/e-memos.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-memos.c b/calendar/gui/e-memos.c
index 6d5120787d..a782204297 100644
--- a/calendar/gui/e-memos.c
+++ b/calendar/gui/e-memos.c
@@ -177,6 +177,10 @@ table_selection_change_cb (ETable *etable, gpointer data)
n_selected = e_table_selected_count (etable);
gtk_signal_emit (GTK_OBJECT (memos), e_memos_signals[SELECTION_CHANGED],
n_selected);
+
+ if (n_selected != 1)
+ e_cal_component_memo_preview_clear (E_CAL_COMPONENT_MEMO_PREVIEW (memos->priv->preview));
+
}
static void