summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-09-11 14:58:49 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-09-11 14:58:49 +0000
commit6edeb87ad7f81ecb25e4aae240e97b88eed3dcb9 (patch)
tree44eeae7a59d4c85a1580ae530d5bd524f22e67c5 /file.c
parent8d802d414c9060bb8185d888f1e065dd36984f60 (diff)
downloadwireshark-6edeb87ad7f81ecb25e4aae240e97b88eed3dcb9.tar.gz
Only move to last row if it's vissible.
svn path=/trunk/; revision=29861
Diffstat (limited to 'file.c')
-rw-r--r--file.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/file.c b/file.c
index e206d564b5..da21a9c9d7 100644
--- a/file.c
+++ b/file.c
@@ -756,6 +756,7 @@ cf_continue_tail(capture_file *cf, volatile int to_read, int *err)
dfilter_t *dfcode;
gboolean filtering_tap_listeners;
guint tap_flags;
+ gboolean visible;
/* Compile the current display filter.
* We assume this will not fail since cf->dfilter is only set in
@@ -794,8 +795,11 @@ cf_continue_tail(capture_file *cf, volatile int to_read, int *err)
TRY{
if (read_packet(cf, dfcode, filtering_tap_listeners, tap_flags,
data_offset) != -1) {
+ visible = TRUE;
newly_displayed_packets++;
- }
+ }else{
+ visible = FALSE;
+ }
}
CATCH(OutOfMemoryError) {
gpointer dialog;
@@ -848,7 +852,8 @@ cf_continue_tail(capture_file *cf, volatile int to_read, int *err)
we have some new packets. */
if (newly_displayed_packets && auto_scroll_live && cf->plist_end != NULL)
#ifdef NEW_PACKET_LIST
- new_packet_list_moveto_end();
+ if(visible)
+ new_packet_list_moveto_end();
#else
/* this doesn't seem to work well with a frozen GTK_Clist, so do this after
packet_list_thaw() is done, see bugzilla 1188 */