From Stig:

Invalidate cfile.current_row instead(revert 30910).

svn path=/trunk/; revision=30925
This commit is contained in:
Anders Broman 2009-11-10 20:16:14 +00:00
parent d22d3bf804
commit cafad87fd9
2 changed files with 4 additions and 5 deletions

2
file.c
View File

@ -1975,6 +1975,8 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item,
/* Either the frame that was selected passed the filter, or we've
found the nearest displayed frame to that frame. Select it, make
it the focus row, and make it visible. */
/* Set to invalid to force update of packet list and packet details */
cf->current_row = -1;
if (selected_frame_num == 0) {
new_packet_list_select_first_row();
}else{

View File

@ -585,12 +585,9 @@ new_packet_list_select_cb(GtkTreeView *tree_view, gpointer data _U_)
row = row_number_from_iter(&iter);
/* Check if already selected
* XXX This does not work as before filtering selected row can be 1
* but the filtered list will start on row 1 as well cusing the
* bytes pane not to be updated.
*/
/*if (cfile.current_frame && cfile.current_row == row)
return;*/
if (cfile.current_frame && cfile.current_row == row)
return;
/* Remove the hex display tab pages */
while(gtk_notebook_get_nth_page(GTK_NOTEBOOK(byte_nb_ptr), 0))