aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-12-08 21:30:21 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-12-08 21:30:21 +0000
commit076349374b25ccab0d16d8c27bbddbe4152b8ceb (patch)
tree6a07ab3d4528c7ff9508393ea45e4bb9e5adce07 /file.c
parentbc7cb2706e58dce9470ae1474ef5d94ed65b6b25 (diff)
Invalidate cf->current_row when rescan packet and the new selected row 0
has changed, to force update of packet list and packet details. This fixes bug 3099. svn path=/trunk/; revision=26937
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/file.c b/file.c
index 5c21d603c7..b737fd1bb2 100644
--- a/file.c
+++ b/file.c
@@ -1729,6 +1729,10 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item,
we'll select the previous frame */
selected_row = preceding_row;
}
+ if (selected_row == 0) {
+ /* Set to invalid to force update of packet list and packet details */
+ cf->current_row = -1;
+ }
}
}