aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index a11d940bfe..83296059c8 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -430,13 +430,17 @@ click_to_add_cursor_change (ETableClickToAdd *etcta, int row, int col, ETable *e
static void
group_cursor_change (ETableGroup *etg, int row, ETable *et)
{
- if (et->cursor_loc == E_TABLE_CURSOR_LOC_ETCTA && et->click_to_add) {
- e_table_click_to_add_commit(E_TABLE_CLICK_TO_ADD(et->click_to_add));
- }
+ ETableCursorLoc old_cursor_loc;
+
+ old_cursor_loc = et->cursor_loc;
+
et->cursor_loc = E_TABLE_CURSOR_LOC_TABLE;
gtk_signal_emit (GTK_OBJECT (et),
et_signals [CURSOR_CHANGE],
row);
+
+ if (old_cursor_loc == E_TABLE_CURSOR_LOC_ETCTA && et->click_to_add)
+ e_table_click_to_add_commit(E_TABLE_CLICK_TO_ADD(et->click_to_add));
}
static void