summaryrefslogtreecommitdiff
path: root/capture.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-04-12 21:56:27 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-04-12 21:56:27 +0000
commit24801e8e5fe948e4a269bed4b65d17f9cfec5567 (patch)
tree76d9f367333682d85c96fef57c502dcfd5ee78d9 /capture.c
parent7e9cedfed81ac84ac28b5f48e36c843025abe2c8 (diff)
downloadwireshark-24801e8e5fe948e4a269bed4b65d17f9cfec5567.tar.gz
don't display "No packets captured" dialog, when using the new clear feature
svn path=/trunk/; revision=14060
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capture.c b/capture.c
index 5b4df8b907..200ddb452f 100644
--- a/capture.c
+++ b/capture.c
@@ -189,7 +189,7 @@ guint32 drops)
}
/* if we didn't captured even a single packet, close the file again */
- if(cf_packet_count(capture_opts->cf) == 0) {
+ if(cf_packet_count(capture_opts->cf) == 0 && !capture_opts->restart) {
simple_dialog(ESD_TYPE_INFO, ESD_BTN_OK,
"%sNo packets captured!%s\n\n"
"As no data was captured, closing the %scapture file!",
@@ -305,7 +305,7 @@ capture_input_closed(capture_options *capture_opts)
switch (cf_finish_tail(capture_opts->cf, &err)) {
case CF_READ_OK:
- if(cf_packet_count(capture_opts->cf) == 0) {
+ if(cf_packet_count(capture_opts->cf) == 0 && !capture_opts->restart) {
simple_dialog(ESD_TYPE_INFO, ESD_BTN_OK,
"%sNo packets captured!%s\n\n"
"As no data was captured, closing the %scapture file!",