diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/e-table.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 9534230be1..ab836fb372 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -1124,6 +1124,10 @@ table_canvas_focus_event_cb (GtkWidget *widget, GdkEventFocus *event, gpointer d gnome_canvas_item_grab_focus (etable->click_to_add); } else if (!canvas->focused_item && etable->group) { focus_first_etable_item (etable->group); + } else if (canvas->focused_item) { + ESelectionModel *selection = (ESelectionModel *)etable->selection; + if (e_selection_model_cursor_row (selection) == -1) + focus_first_etable_item (etable->group); } return TRUE; |