forked from osmocom/wireshark
From Stig:
Invalidate cfile.current_row instead(revert 30910). svn path=/trunk/; revision=30925
This commit is contained in:
parent
d22d3bf804
commit
cafad87fd9
2
file.c
2
file.c
|
@ -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{
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue