aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-10-22 13:49:55 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-10-22 13:49:55 +0800
commitef12fcd08f597d3418589be823bf7f54e26c34b6 (patch)
tree951dcc71dc541a168958e12f2e4e0fd5bd137f71 /widgets/table
parentb10ce5577d3939b895e270181ebe569e8addc58e (diff)
downloadgsoc2013-evolution-ef12fcd08f597d3418589be823bf7f54e26c34b6.tar.gz
gsoc2013-evolution-ef12fcd08f597d3418589be823bf7f54e26c34b6.tar.zst
gsoc2013-evolution-ef12fcd08f597d3418589be823bf7f54e26c34b6.zip
don't emit a signal if we couldn't find the view row
2002-10-18 JP Rosevear <jpr@ximian.com> * e-table-item.c (eti_cursor_activated): don't emit a signal if we couldn't find the view row svn path=/trunk/; revision=18405
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-item.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 391e6c4e20..cc4c52ad4b 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -3087,8 +3087,10 @@ eti_cursor_activated (ESelectionModel *selection, int row, int col, ETableItem *
if (eti_editing(eti))
e_table_item_leave_edit_(eti);
- gtk_signal_emit (GTK_OBJECT (eti), eti_signals [CURSOR_ACTIVATED],
- view_row);
+
+ if (view_row != -1)
+ gtk_signal_emit (GTK_OBJECT (eti), eti_signals [CURSOR_ACTIVATED],
+ view_row);
}
static void