diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-04-10 17:36:36 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-04-10 17:36:36 +0000 |
commit | adc2bf61a8a144f962f300a60b0ab891870ed6b6 (patch) | |
tree | d8452edb7fca7bf2361064bd2ba727e43357d23f /capture.c | |
parent | 63047dfdd5d2a2261e46094401efe1c429419d00 (diff) |
bugfix: hide panes if a non "Update" capture had no packets captured (hopefully it's working correct now...)
svn path=/trunk/; revision=14043
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -281,29 +281,29 @@ capture_input_closed(capture_options *capture_opts) simple_dialog_primary_start(), simple_dialog_primary_end(), cf_is_tempfile(capture_opts->cf) ? "temporary " : ""); cf_close(capture_opts->cf); - /* we have closed the capture file, don't call cf_cb_live_capture_finished! */ - } else { - cf_callback_invoke(cf_cb_live_capture_finished, capture_opts->cf); } break; case CF_READ_ERROR: /* Just because we got an error, that doesn't mean we were unable to read any of the file; we handle what we could get from the file. */ - cf_callback_invoke(cf_cb_live_capture_finished, capture_opts->cf); break; case CF_READ_ABORTED: /* Exit by leaving the main loop, so that any quit functions we registered get called. */ main_window_quit(); - cf_callback_invoke(cf_cb_live_capture_finished, capture_opts->cf); } } else { /* this is a normal mode capture, read in the capture file data */ capture_input_read_all(capture_opts, cf_is_tempfile(capture_opts->cf), cf_get_drops_known(capture_opts->cf), cf_get_drops(capture_opts->cf)); + } + + /* if we have captured some packets, call cf_cb_live_capture_finished! */ + /* (otherwise we already have called cf_close) */ + if(cf_packet_count(capture_opts->cf) != 0) { cf_callback_invoke(cf_cb_live_capture_finished, capture_opts->cf); } |