Ethereal-dev: [Ethereal-dev] Changes to save the capture file on quit

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

From: Richard Sharpe <rsharpe@xxxxxxxxxxxxxxxxx>
Date: Sun, 28 Dec 2003 17:05:52 -0800 (PST)
Hi,

Currently, File->Quit is handled by the following:

	void
	file_quit_cmd_cb (GtkWidget *widget _U_, gpointer data _U_)
	{	
        	do_quit();
	}

I suspect that we should add, before do_quit() the following

		if (!cfile.user_saved) {
			file_save_as_cmd_cb(widget, data);
		}

Does anyone have any problems with that?
 
Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com