aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-06-01 15:26:15 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-06-01 15:26:15 +0000
commit09d8911d4abc55f053121d6f032b0b6605b62143 (patch)
tree9ce508ec5ecf95d58286dbd8b4c0923541763160 /file.c
parent60dfa227547ce3b2e992ebef180aa9d667b760e6 (diff)
Popup a dialog in case we match a row outside the loaded frame area.
This adds some information for bug 3429. svn path=/trunk/; revision=28556
Diffstat (limited to 'file.c')
-rw-r--r--file.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/file.c b/file.c
index baf82c407c..0b7bdab336 100644
--- a/file.c
+++ b/file.c
@@ -3194,11 +3194,16 @@ find_packet(capture_file *cf,
if (new_fd != NULL) {
/* We found a frame. Find what row it's in. */
row = packet_list_find_row_from_data(new_fd);
- if (row == -1)
+ if (row == -1) {
/* We didn't find a row even though we know that a frame
* exists that satifies the search criteria. This means that the
* frame isn't being displayed currently so we can't select it. */
+ simple_dialog(ESD_TYPE_INFO, ESD_BTN_OK,
+ "%sEnd of capture exceeded!%s\n\n"
+ "The capture file is probably not fully loaded.",
+ simple_dialog_primary_start(), simple_dialog_primary_end());
return FALSE;
+ }
/* Select that row, make it the focus row, and make it visible. */
packet_list_set_selected_row(row);