On Nov 23, 2015, at 2:59 AM, Michal Labedzki <[email protected]> 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.
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <[email protected]>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:[email protected]?subject=unsubscribe