diff options
author | Mengjie Yu <meng-jie.yu@sun.com> | 2005-04-21 16:57:17 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2005-04-21 16:57:17 +0800 |
commit | f45242150b280b91ae59aef5ad6c812ad1ced88a (patch) | |
tree | 71a39ef605aa0bde5927597dd1c7a3f2f5a26202 /widgets | |
parent | ad916f5a08c464bc846a8c52b323632dfd7576a5 (diff) | |
download | gsoc2013-evolution-f45242150b280b91ae59aef5ad6c812ad1ced88a.tar.gz gsoc2013-evolution-f45242150b280b91ae59aef5ad6c812ad1ced88a.tar.zst gsoc2013-evolution-f45242150b280b91ae59aef5ad6c812ad1ced88a.zip |
break while row equals -1.
2005-04-21 Mengjie Yu <meng-jie.yu@sun.com>
* gal/widgets/e-selection-model.c: (e_selection_model_key_press):
break while row equals -1.
Fixes #74434
svn path=/trunk/; revision=29222
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/misc/e-selection-model.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/misc/e-selection-model.c b/widgets/misc/e-selection-model.c index 991fc78490..7694b90432 100644 --- a/widgets/misc/e-selection-model.c +++ b/widgets/misc/e-selection-model.c @@ -607,6 +607,9 @@ e_selection_model_key_press (ESelectionModel *selection, if (selection->mode != GTK_SELECTION_SINGLE) { int row = e_selection_model_cursor_row(selection); int col = e_selection_model_cursor_col(selection); + if (row == -1) + break; + e_selection_model_toggle_single_row (selection, row); g_signal_emit(selection, e_selection_model_signals[CURSOR_ACTIVATED], 0, |