diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-05 11:58:44 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-05 11:58:44 +0000 |
commit | 2db51a0b3ed7f611830db4b30295d59c66cc1031 (patch) | |
tree | 0ce22bfdf90bfbbfe52710c7b893dc54fd12d2b7 /gtk/packet_list_store.c | |
parent | f91c46757a8d7a8b7323a740167f71b21dc134a8 (diff) |
Bail out gracefully on colums we cant sort on yet instead of crashing
svn path=/trunk/; revision=29707
Diffstat (limited to 'gtk/packet_list_store.c')
-rw-r--r-- | gtk/packet_list_store.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/packet_list_store.c b/gtk/packet_list_store.c index bd9ae49da8..53f72286f4 100644 --- a/gtk/packet_list_store.c +++ b/gtk/packet_list_store.c @@ -695,6 +695,11 @@ packet_list_sortable_set_sort_column_id(GtkTreeSortable *sortable, packet_list->sort_order == order) return; + if (!col_based_on_frame_data(&cfile.cinfo, sort_col_id)) { + g_warning("Sorting on column %u not supported", sort_col_id); + return; + } + packet_list->sort_id = sort_col_id; packet_list->sort_order = order; |