From 0da59a005829eb5daf49c6477219a35ac4e73ab3 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 19 Jul 2012 21:49:52 +0000 Subject: Pass {delayed_}create_progress_dlg a pointer the top level window so that we can properly associate a widget with create, update, and destroy events. Only used by Qt so far but it should be easy enough to add to GTK+. Rename ui/qt/progress_dialog.{h,cpp} to progress_bar.{h,cpp}. Show a progress bar in the status bar of the main window instead of creating a separate dialog. Note that we still need to add a "cancel" mechanism and display the task and item titles somewhere. Thus began the War Against Gratuitous Dialogs. svn path=/trunk/; revision=43833 --- cfile.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'cfile.c') diff --git a/cfile.c b/cfile.c index 757c415740..1f10716f41 100644 --- a/cfile.c +++ b/cfile.c @@ -37,16 +37,6 @@ void cap_file_init(capture_file *cf) { /* Initialize the capture file struct */ - cf->filename = NULL; - cf->source = NULL; - cf->is_tempfile = FALSE; - cf->unsaved_changes = FALSE; - cf->count = 0; - cf->has_snap = FALSE; + memset(cf, sizeof(capture_file), 0); cf->snap = WTAP_MAX_PACKET_SIZE; - cf->wth = NULL; - cf->rfcode = NULL; - cf->dfilter = NULL; - cf->redissecting = FALSE; - cf->frames = NULL; } -- cgit v1.2.3