Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: Re: [Ethereal-dev] "Expand Tree" item in context menu

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 22 Mar 2004 12:03:38 -0800
On Mon, Mar 22, 2004 at 07:00:47AM +0100, Tomas Kukosa wrote:
> > It looks as if the main menu item is still active iff there's a selected
> > field - you might want to use the same criterion for the main menu
> > Expand Tree item that's used for the context menu Expand Tree item.
> 
> Maybe, I have missed something but I think the code does it (and it works
> well on my PC).

"set_menus_for_selected_packet()" is enabling or disabling both menus
based only on whether "cf->current_frame" is non-null.