diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-04-12 21:56:27 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-04-12 21:56:27 +0000 |
commit | 24801e8e5fe948e4a269bed4b65d17f9cfec5567 (patch) | |
tree | 76d9f367333682d85c96fef57c502dcfd5ee78d9 /capture.c | |
parent | 7e9cedfed81ac84ac28b5f48e36c843025abe2c8 (diff) |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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!", |