Ethereal-dev: [ethereal-dev] Save As bug

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jeff Foster <jfoste@xxxxxxxxxxxx>
Date: Mon, 10 Apr 2000 11:01:53 -0500
If you try to open a file after doing a 'Save As' the file_sel variable
isn't set to null by the 'Save As' and you get a message "assertion 
'window != NULL' failed"

The files_save_as_cmd_cb function needs a destroy signal handler similar
to the file_open_cmd_cb.  This diff should do the trick.

*** file_dlg.c	Mon Apr 10 10:54:22 2000
--- file_dlg.c.new	Mon Apr 10 10:54:15 2000
***************
*** 363,368 ****
--- 363,371 ----
  
    file_sel = gtk_file_selection_new ("Ethereal: Save Capture File As");
  
+   gtk_signal_connect(GTK_OBJECT(file_sel), "destroy",
+         GTK_SIGNAL_FUNC(file_open_destroy_cb), NULL);
+ 
    /* Connect the ok_button to file_save_as_ok_cb function and pass along a
       pointer to the file selection box widget */
    ok_bt = GTK_FILE_SELECTION (file_sel)->ok_button;



Jeff Foster
jfoste@xxxxxxxxxxxx