Wireshark-dev: Re: [Wireshark-dev] Open dialog file type is broken
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 23 Nov 2015 13:12:26 -0800
On Nov 23, 2015, at 2:59 AM, Michal Labedzki <michal.labedzki@xxxxxxxxx> wrote:

>>    *    For meta-filters, remove the file extension list to eliminate
>>    *    clutter. Examples: "All files," "All pictures," "All music,"
>>    *    and "All videos."
> 
> So you can add all supported by Wireshark file types, but without
> extension (*.*).

The only way to show all files that are Wireshark supported file types, without checking the file extension, is to have some hook in the file dialog that hands the file name of every file in the directory to a callback, with the callback trying to open the file and:

	if that succeeds, closing it and returning a "yes, show this file" indication;

	if that fails, returning a "no, don't show this file" indication.

That would be more expensive than matching files based on the file extension, and I'm not sure the Qt file dialogs support it - it *might* be possible to do that by subclassing that dialog, but I'm not sure.